The Gears docs state that a blob is an opaque block of binary data... I don't think there is a way to manipulate file contents (or read them) through Gears. I think Java applets (and maybe Adobe Air?) can do that though.
On Jun 3, 6:27 pm, Anarchy Angel <[email protected]> wrote: > im trying to make a little script that will let the user pick a file > then display the name of the file then display its content and im not > sure how to do this here is what i have so far: > > if(window.google && google.gears) > { > var files = google.gears.factory.create('beta.desktop'); > var filecon = ''; > files.openFiles( > function(file) > { > alert('You picked '+file[0].name); > filecon += file[0].blob; > alert(filecon); > }, {singleFile: true} > );} > > else{ > alert('No gears found.'); > > } > > any ideas how to do this?
