Skip to content Skip to sidebar Skip to footer

Send Image File Via Retrofit From Android To Spring

I am trying to upload Image via Retrofit to S3 via Spring. So, it's basically 2 tasks. Pass Image to Spring API From Spring API upload it to S3 Server. I know how to upload the I

Solution 1:

you are sending your information using multipart/form-data so try to use

@ModelAttribute

instead of

@RequestBody

the method signature will be

publicStringUploadImage(@ModelAttribute CropImageRequest cropImageRequest,HttpServletRequest request)

Post a Comment for "Send Image File Via Retrofit From Android To Spring"