收藏
回答

临时文件 500 (Internal Server Error) ?

将base64图片转binary后存到临时文件中, 通过getImageInfo可以得到图片信息并执行success回调, 我在回调中将图片画到canvas上时报错(偶尔会出现), 出现后必须清除小程序缓存

目前我设置了15秒的定时器, 没有成功画出图则进行提示

info {errMsg: "getImageInfo:ok", width: 280, height: 280, type: "jpeg", orientation: "up", …}
  errMsg"getImageInfo:ok"
  height280
  orientation"up"
  path"http://usr/tmp_base64src.jpeg"
  type"jpeg"
  width280
  __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
最后一次编辑于  06-18
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签