javascript - Please help with uploading base64-bit string image data to the java background
欧阳克
欧阳克 2017-06-12 09:19:31
0
3
899

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?

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(3)
刘奇

Convert images to Base64 strings

漂亮男人

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

学习ing

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...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template