Zoe Sullivan
Results
1
issues of
Zoe Sullivan
这个是转换的代码 ```js const { fileID } = await app.uploadFile({ cloudPath: 'aa8a.jpg', fileContent: Buffer.from(JSON.parse(event.body).file, 'base64'), }) ``` 下面是验证上传的base64是否有效的代码。将base64返回给前端可以正常显示 ```js context.isBase64Encoded= true; context.statusCode= 200; context.setHeader( 'content-type','image/png' ); const { fileID } =...