wx.getLocalImgData 会返回本地图的base64,安卓和苹果得到的base64字符串有所不同

安卓:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(base64)

苹果:data:image/jgp;base64,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(base64)

得到的base64都无法直接在IMG上显示

安卓需要在得到的base64前面加上   data:image/jpeg;base64,

苹果则需要替换掉前面的 data:image/jgp;base64 为 data:image/jpeg;base64

This article has 3 comments

  1. Pingback: pharmacy cialis generic online

  2. Pingback: generic ventolin

  3. Pingback: cialis 10 mg

Comments are closed.