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

前端 未结 4 1590
眼角桃花
眼角桃花 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 04:01

    Once you Base64-decode the string, you will have the binary image, in the form of a PNG file. See this SO question for details on how to decode a base64 string into bytes.

提交回复
热议问题