Hi, I need to upload a jpeg to my server which acc...
# squarelibraries
r
Hi, I need to upload a jpeg to my server which accepts multipart(?). The image was taken with the camera on mobile (examples around the web reference browsers) and is held in memory. How to upload with retrofit? The docs talk about
RequestBody
but not sure how to put it all together.
r
Do I have to convert the in memory bitmap to a file?
y
No, each part is a RequestBody, so can be converted from File, String, Bytes or anything really.