you need to set the

response.header['Content-type']='image/jpeg'

else the browser does not know what to do with the file.


On Feb 23, 2:23 pm, BrendanC <bren...@gmail.com> wrote:
> I uploaded a small (<1mb)  jpeg image to my local dev app server. In this
> case the blob goes in the image file and is stored as a large string in an
> 'image_blob' field.
> However when I retrieve this image it is displayed as a string, rather than
> as an image.
>
> Is there something else I need to do here to render the blob correctly as a
> jpeg file - possibly some sort of special template tag or blob handler.
>
> Note: This is about in small (<1mb) record/entity blobs.  I'm *not* using
> the google blobstore here - just in case there is any confusion.
>
> Any working examples would be helpful here.
>
> TIA,
> BrendanC

Reply via email to