why don't you use an applet or something similar? that's the only way
I can think of because Gears does not let you access the content of a
BLOB.

amin

On May 12, 1:36 pm, MG <[email protected]> wrote:
> Hello!
>
> Gears API lets me open a file on the client computer (through the
> desktop interface), read it into a blob, cache the blob in the
> localstore, and then let the user "download" it by providing the url.
>
> What I can't figure out is how I can process the data without a server
> round-trip: let's say I want to compress the file using my own
> compression algorithm, or look up keywords, whatever. There's no
> security issues here: I can upload a file to the server, do whatever I
> want there, and then let the user download it, and the browser will
> let me do that. But how can I do the same thing without a server round-
> trip? I thought that Gears API is designed to let me do things like
> that offline, but I can't figure out the way. Is there a BlobToString
> function? Or a way to cast 4 bytes of a blob to an int (and back)?
>
> Thanks,
> MG

Reply via email to