as an aside, cropper screenshots support obtaining data in base64 and blob formats. What"s the difference between these two? if I get file from the background in the following ways, which format is suitable
HttpServletRequest request
List<MultipartFile> files = ((MultipartHttpServletRequest)request).getFiles("file");
main topic: after vue-cropper obtains the information of the captured image, how does the foreground upload it to the background, and the backend can receive it in the above way
the partial code of the axios request method I encapsulated is as follows
updateUserIcon(){
return request({
url:"user/updateUserIcon",
method:"post",
})
}
the parameters used to be passed to the background are as follows. Note: data uses qs formatted in the global, and finally uses the same format as parmas (as if saying more nonsense)
.
parmas(data):{
openID:"123465"
}
at this time, I don"t know if it"s a file, and I"m even more confused if it"s in base64 or blob format. I hope some bosses will talk about it carefully, otherwise the novice will not be able to accept
.