Re: Returning images with Django

2006-09-05 Thread Filipe
I see. thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Re: Returning images with Django

2006-09-05 Thread Ned Batchelder
Filipe wrote: 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 u

Re: Returning images with Django

2006-09-05 Thread Filipe
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

Re: Returning images with Django

2006-09-04 Thread charles sibbald
im doing something similar, I have set up a link from my webserver which is not a very big machine, to my NAS box using standard linux networking protocols...this may not be the best way to do it, but it works- Original Message From: Filipe <[EMAIL PROTECTED]>To: Django users Sent: Monday,

Re: Returning images with Django

2006-09-04 Thread Ian Holsman
im = Image.open('%s/blah.jpg' % settings.MEDIA_ROOT ) resp = HttpResponse( mimetype="image/jpeg" ) im.save( resp, 'JPEG' ) return resp ? On 04/09/2006, at 9:09 PM, Filipe wrote: > > Hi all, > > I need to make some images available on my django website that are > stored on an

Returning images with Django

2006-09-04 Thread Filipe
Hi all, I need to make some images available on my django website that are stored on an internal file server. The idea would be that Django would be listening to requests for those images, the respective view would read the bytes for the requested image (which would be available locally via samba