are you sure this is actually a good idea?

in almost all cases serving the image via the actual web server, whose job 
it is to serve images, is the best idea.

either way, you wouldn't use an image field to store base64 data. that's 
for references to actual files in a filesystem.

first you'd need to convert the image to base64. then store that in a 
textfield. keep in mind there's going to be size limits with that.

i'd read:
https://docs.djangoproject.com/en/1.4/topics/http/file-uploads/ if you're 
dealing with uploads from a client's browser
otherwise just standard file objects will work
and then
http://docs.python.org/library/base64.html



re: nikhil, i'm not sure how jquery or any of that is relevant,

On Tuesday, May 15, 2012 7:55:05 AM UTC-4, Bussiere wrote:
>
> Does anyone tried to store only Base64 info in databse of an image 
> instead of a file with django image field ? 
>
> Do you have any idea how to do it ? 
>
> Or some hints to give me ? 
>
> regards and thanks 
> Bussiere 
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/8vn8tqb-nrwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to