upload canvas data to s3

前端 未结 5 1560
刺人心
刺人心 2020-12-25 13:53

Now since the amazon has enabled CORS I was wondering if this is possible.

Can the html canvas data (on client browser) be converted to a <

5条回答
  •  难免孤独
    2020-12-25 14:47

    I was researching this and not having much luck until I found this post: https://github.com/aws/aws-sdk-js/issues/1712#issuecomment-329542614

    AWS has a utility that will decode base64 in their aws-sdk: AWS.util.base64.decode(image)

    Simple solution, and worked for me.

提交回复
热议问题