benlilaj / gears

Automatically exported from code.google.com/p/gears
0 stars 1 forks source link

Need to create blob object from javascript generated data #786

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Our use case is to generate binary data (a PDF report) in javascript code
while the user is offline.  We need to then serve that up to the user so
that they can download/print the report.  Others have mentioned this use
case as well:

http://groups.google.com/group/gears-users/browse_frm/thread/200073196e29d524/f6
ffecf7c097102a?lnk=gst&q=pdf#f6ffecf7c097102a

http://groups.google.com/group/gears-users/browse_thread/thread/8f66b64926529bf0
/625250012f86b963?lnk=gst&q=pdf#625250012f86b963

http://groups.google.com/group/gears-users/browse_thread/thread/2e69e4fcb9f96021
/9afc9158fefa16fc?lnk=gst&q=pdf#9afc9158fefa16fc

Original issue reported on code.google.com by len...@gmail.com on 23 Dec 2008 at 9:47

GoogleCodeExporter commented 9 years ago
I've compiled Gears from SVN and the Blob Builder does exactly what I need, can 
it be
enabled in the official builds and if not what can I do to help?

Test code:

var builder = google.gears.factory.create('beta.blobbuilder', '1.0');
builder.append('test!');
var blob = builder.getAsBlob();
var storeFactory = google.gears.factory.create('beta.localserver', '1.0');
var store = storeFactory.createStore('store');
store.captureBlob(blob, 'test.txt', 'text/plain');

Original comment by what.wen...@gmail.com on 12 Feb 2009 at 9:27

GoogleCodeExporter commented 9 years ago
Another user wanting to serve PDFs offline:

http://groups.google.com/group/gears-users/browse_thread/thread/d584192d9e4fdc26
#

Original comment by len...@gmail.com on 20 Mar 2009 at 8:03