将base64图片转binary后存到临时文件中, 通过getImageInfo可以得到图片信息并执行success回调, 我在回调中将图片画到canvas上时报错(偶尔会出现), 出现后必须清除小程序缓存
目前我设置了15秒的定时器, 没有成功画出图则进行提示
info {errMsg: "getImageInfo:ok", width: 280, height: 280, type: "jpeg", orientation: "up", …}
errMsg: "getImageInfo:ok"
height: 280
orientation: "up"
path: "http://usr/tmp_base64src.jpeg"
type: "jpeg"
width: 280
__proto__: Object
tmp_base64src.jpeg:1
GET http://usr/tmp_base64src.jpeg 500 (Internal Server Error)
Image (async)
set src@VM1270:1
success@detail.js? [sm]:254i.
@VM1286 WAService.js:2h@VM1286 WAService.js:2(anonymous)@VM1286 WAService.js:2y@VM1286 WAService.js:2v@VM1286 WAService.js:2(anonymous)@VM1286
WAService.js:2(anonymous)@VM1284 asdebug.js:1h@VM1286 WAService.js:2(anonymous)@VM1286 WAService.js:2(anonymous)@VM1286 WAService.js:2setTimeout (async)
setTimeout@VM1286 WAService.js:2(anonymous)@VM1284 asdebug.js:1(anonymous)@VM1284 asdebug.js:1(anonymous)@VM1284 asdebug.js:1_ws.onmessage@VM1284 asdebug.js:1
我是设定 src = 已下载的图像的本地路径时,报 500 错误
你好,500服务器内部错误喔,请检查