On Wed, Jun 8, 2011 at 2:51 PM, Daniel Roseman <dan...@roseman.org.uk> wrote:
> But that "bunch of image data" is a string - because that's what .read()
> returns.
> The FileField documentation [1] shows how to save a disk file to a field:
>     from django.core.files import File
>     f = open('/tmp/hello.world')
>     myfile = File(f)
>     et.image.save( image_name, myfile )
>
> https://docs.djangoproject.com/en/1.3/ref/models/fields/#django.db.models.FieldFile.save


I see now.. got it working.

Thanks.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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