to -F flag or option.
If you are using a browser look into the formData object and the FileApi.
to receive the uploaded image use request.FILES as in the stack overflow
link above
On Sat, 4 Jan 2020, 20:05 Yery cs, wrote:
> I am going to upload image on json.
>
> e.g P
Hi,
Iam trying to learn API in Django,
Kindly,Help me.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups
AAAECBAgUCAi8BYiWIECAAAECBAgQ6Csg8PadjcoIECBAgAABAgQKBATeAkRLECBAgAABAgQI9BUQePvORmUECBAgQIAAAQIFAgJvAaIlCBAgQIAAAQIE+goIvH1nozICBAgQIECAAIECAYG3ANESBAgQIECAAAECfQUE3r6zURkBAgQIECBAgECBgMBbgGgJAgQIECBAgACBvgL/AUvLCtjq5XCXAElFTkSuQmCC"
>>>>>> }
>>>>>
}
>>>>> }
>>>>>
>>>>> You can take this long text and paste it in the browser's address bar
>>>>> and you will see the picture.
>>>>>
>>>>> Note that it starts with: *data:image/png;base64,*
>>>
JAgQIECBAgACBvgL/AUvLCtjq5XCXAElFTkSuQmCC"
>>>> }
>>>> }
>>>>
>>>> You can take this long text and paste it in the browser's address bar
>>>> and you will see the picture.
>>>>
>>>&g
E+goIvH1nozICBAgQIECAAIECAYG3ANESBAgQIECAAAECfQUE3r6zURkBAgQIECBAgECBgMBbgGgJAgQIECBAgACBvgL/AUvLCtjq5XCXAElFTkSuQmCC"
>>> }
>>> }
>>>
>>> You can take this long text and paste it in the browser's address bar
>>> and you will see the
gt;> }
>>
>> You can take this long text and paste it in the browser's address bar and
>> you will see the picture.
>>
>> Note that it starts with: *data:image/png;base64,*
>>
>> You just have to find a way for your client to transform the image
CBgMBbgGgJAgQIECBAgACBvgL/AUvLCtjq5XCXAElFTkSuQmCC"
>> }
>> }
>>
>> You can take this long text and paste it in the browser's address bar and
>> you will see the picture.
>>
>> Note that it starts with: *data:image/png;base64,*
>>
ata:image/png;base64,*
>
> You just have to find a way for your client to transform the image into a
> base64.
>
> Eli
>
> On Sat, Jan 4, 2020 at 6:05 PM Yery cs wrote:
>
>> I am going to upload image on json.
>>
>> e.g Postman request.
>>
>>
take this long text and paste it in the browser's address bar and
you will see the picture.
Note that it starts with: *data:image/png;base64,*
You just have to find a way for your client to transform the image into a
base64.
Eli
On Sat, Jan 4, 2020 at 6:05 PM Yery cs wrote:
> I am
I am going to upload image on json.
e.g Postman request.
{
"username": "is690002",
"password": "is690002",
"first_name": "andres ",
"last_name": "Barragan",
"email": "t
11 matches
Mail list logo