search

Home  >  Q&A  >  body text

javascript - Please help with uploading base64-bit string image data to the java background

It’s like this. The company project has a requirement to provide users with the function of manually adding mosaics before uploading pictures. I use canvas to complete this part of the processing, but what I get after canvas processing is a base64-bit string. My current idea is to directly send this base64-bit string to the backend through a post request, so that the backend gets a base64-bit string. So is this enough? The background is Java. Can the general Java background convert this base64 bit into an image? If I don’t know how to do it in the background, how can I fix it?

欧阳克欧阳克2752 days ago902

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-06-12 09:21:31

    Convert images to Base64 strings

    reply
    0
  • 漂亮男人

    漂亮男人2017-06-12 09:21:31

    That’s enough. Java can convert Base64, bitmap and bytes[] at will. Please feel free to upload it.

    reply
    0
  • 学习ing

    学习ing2017-06-12 09:21:31

    Don’t worry about the back-end if the front-end can do it.

    Convert Base64 to Blob/File object in the browser, and then use formData to the backend.

    https://stackoverflow.com/que...

    reply
    0
  • Cancelreply