* mercoledì 17 gennaio 2007, alle 09:30, Michael Bayer wrote :
print "Content-type:text/pdf\n\n"    # whatever the header is for pdf
for chunk in res.pdf:
   sys.stdout.write(chunk.data)

I would agree that the approach taken by "pg_largeobject" is a useful
approach in that you can read just "chunked" sections.

I've converted the column in bytea ... I've realized that I've no benefits using BLOB and pg_largeobject ... and the .pdf is much more usable in
this form ...

tanks a lot ...

--
#include <stdio.h>
int main(void){char c[]={10,65,110,116,111,110,105,111,32,98,97,114,98,111,110,
101,32,60,104,105,110,100,101,109,105,116,64,116,105,115,99,97,108,105,110,101,
116,46,105,116,62,10,10,0};printf("%s",c);return 0;}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to