This should do it:
Field('photo',type=SQLCustomType(type ='string', native ='blob'))
On Friday, 29 March 2013 21:26:32 UTC-5, Martin Barnard wrote:
>
> Hi, I have read-only access to a legacy oracle database which is storing
> image files as blobs.
>
> I cannot modify the model to include a 'filename' field, or alter the
> table in any way. How can I display returned images as a stream?
>
> I.e. model looks like this:
> odb.define_table('player_photo',
> Field('link_id','integer'),
> Field('photo','blob')
> )
>
>
> So, without a filename field, I cannot figure out how to stream the photo
> to the server.
>
> Any suggestions would be greatly appreciated.
>
> Thanking you in advance.
>
> Martin
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.