Sending the contents of a canvas to a Java server and saving it as an image

前端 未结 4 1651
眼角桃花
眼角桃花 2021-02-09 03:06

Okay, basically I\'ve developed a simple image upload system. The user selects a local image (using the HTML5 File / FileReader API) and has the ability to crop it before confir

4条回答
  •  轮回少年
    2021-02-09 03:40

    You need to remove the data:image/png;base64, part and base 64 decode the rest.

提交回复
热议问题