BLOB support in Gears Database

1 view
Skip to first unread message

aahmad

unread,
Nov 5, 2008, 9:17:55 PM11/5/08
to Gears Users
In version 0.5, will there be support for loading and saving BLOBs
into the Gears database? If not, I suppose I could:
1) generate a unique URL,
2) use LocalServer.captureBlob to save the data
3) store the URL in the database in place of the BLOB itself.

However, in the latter case it would be nice (but not required, I
suppose) if ResourceStore had a method on it for returning an unused
URL name.

Aaron Boodman

unread,
Nov 6, 2008, 12:32:03 AM11/6/08
to gears...@googlegroups.com
No, there won't be any support for storing blobs in the database in
0.5. The workaround you suggested will work fine, but you'll have to
come up with the unique URL yourself.

- a

Srikanth

unread,
Nov 14, 2008, 8:59:44 AM11/14/08
to Gears Users
The SQLite FAQ mentions about storing blobs however it throws error
while inserting blob type.

http://sqlite.org/faq.html#q10

BTW what is the SQLite version used in Gears.

Srikanth

On Nov 6, 10:32 am, Aaron Boodman <a...@google.com> wrote:
> No, there won't be any support for storing blobs in the database in
> 0.5. The workaround you suggested will work fine, but you'll have to
> come up with the unique URL yourself.
>
> - a
>

Michael Nordman

unread,
Nov 14, 2008, 5:47:40 PM11/14/08
to gears...@googlegroups.com
On Fri, Nov 14, 2008 at 5:59 AM, Srikanth <srik...@gmail.com> wrote:

The SQLite FAQ mentions about storing blobs however it throws error
while inserting blob type.
This is expected behavior right now. There is no binding from a GearsBlob to the SQLite3 blob datatype.
 


http://sqlite.org/faq.html#q10

BTW what is the SQLite version used in Gears.
3.6.1 
Reply all
Reply to author
Forward
0 new messages