As i am doing a django rest framework API for IOS mobile app currently, my 
>> partner told me that he will sent me a byte string for image. Then i have 
>> to convert the byte into image when a user request it.
>
>  

> I don't mean to store it into database. Its just i do not know how to do 
>> it as there isnt much post online which talk about storing byte string. 
>
>
I understand that storing byte string/images ? is a bad design, However, i 
do not know which field to use first. From what i know, only ImageField and 
FileField have the (upload_to=) save to path function. Thus i am stuck here 
having no idea on what field to use.

I also have another question , is storing byte string consider as storing 
images ? As from my understanding, byte is not image, it is only after i 
convert it then it becomes an image. 

Sorry for my inexperience, as this is the first time storing byte.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0b500023-3ca2-401b-824b-663039971433%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to