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?
Convert images to Base64 strings
That’s enough. Java can convert Base64, bitmap and bytes[] at will. Please feel free to upload it.
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...