JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

uni-app上传图片后bold转base64

发布时间 2023-11-09 09:43:42作者: HuangBingQuan
uni.chooseImage({
  count: 1, // 图片张数
  success: async res => {
    const reader = new FileReader();
    reader.readAsDataURL(res.tempFiles[0]); 
    reader.onload = async (e)=> {
      console.log(e.target.result)// e.target.result转换后的base64
      const res = await this.$u.api.imgServer.generateImgSrc({ url: e.target.result });
    }
  }
})
    本栏目推荐文章
  • Center-based 3D Object Detection and Tracking
  • 图片特效/增强GUI程序
  • An improved LSTM-based model for identifying high working intensity load segments of the tractor load spectrum
  • 小程序开发:笔记详情显示图片以及可以富文本编辑
  • Early lameness detection in dairy cattle based on wearable gait analysis using semi-supervised LSTM-Autoencoder
  • markdown图片地址批量下载到本地
  • uni-app,微信小程序,组件样式无法穿透修改的解决办法
  • 推荐一款基于fabricjs的图片编辑器(image-editor)
  • 基于正则化的图自编码器在推荐算法中的应用 Application of graph auto-encoders based on regularization in recommendation algorithms
  • opencv结合tesseract识别图片文字
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们