a json? Something like this:
{
"name": "Dummy",
"last_name": "Last",
"avatar_file": *File*
}I've sent files with Multipart but never as a json field. I'm using Retrofit.
You can use base64 but that will be very large
The best way to do it is to upload the image somewhere and just store the url
Обсуждают сегодня