display pdf stored in sqlite in browser

30 views
Skip to first unread message

Rick

unread,
Mar 18, 2009, 3:02:56 PM3/18/09
to Gears Users
How do I display a pdf document I've got stored as a byte array (.pdf
document) in sqlite, I'm thinking I need to document.open() a new
window and somehow write the bytes to it but "trick" it into thinking
the contentType is "application/pdf" so that the adobe reader plug-in
in the browser is opened? Right now all I'm getting is all the bytes
displayed as text.

Thanks in advance.
Rick

Lenbok

unread,
Mar 20, 2009, 3:58:38 PM3/20/09
to Gears Users
You are not alone in wanting to be able to do that. There is a
mechanism for storing Blob objects into the local server, that can
then be linked to as regular urls, but there is currently no way of
getting a Blob with arbitrary content.

http://code.google.com/p/gears/issues/detail?id=786&q=blob&colspec=Version
Milestone Owner ID Summary Component

This functionality has been requested since at least June last year,
and it looks like the needed code is present in non-release builds -
google has been silent on the matter though. :-(

Cheers,
Len.
Reply all
Reply to author
Forward
0 new messages