Ian Holsman wrote:
> im = Image.open('%s/blah.jpg' % settings.MEDIA_ROOT )
> resp = HttpResponse( mimetype="image/jpeg" )
> im.save( resp, 'JPEG' )
> return resp
> ?
yeah, precisely! thanks.
although it works perfectly there's something I don't quite understand
(i'm still a newbie to python). Isn't save() supposed to receive a
filename as the first argument? We're passing it a HttpResponse...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---