Home > Mobile >  Swift Alamofire invokes the Java image upload HTTP interface, Java interface into the parameter is a
Swift Alamofire invokes the Java image upload HTTP interface, Java interface into the parameter is a

Time:11-28

Java HTTP interface code:
 
@ ResponseBody
{userName} @ RequestMapping (value="https://bbs.csdn.net/uploadUserImg/", method=RequestMethod. POST)
Public Map UploadUserImg (@ RequestParam (" userImg ") MultipartFile imgFile,
@ PathVariable (" userName ") String userName) {


.
}

CodePudding user response:

I also this problem solved? Brothers

CodePudding user response:

Finally I use: will upload pictures into base64 string, backstage after receiving again into incoming byte array to the database
  • Related