On Thu, Nov 20, 2008 at 8:37 PM, Chamnap <[EMAIL PROTECTED]> wrote:
>
> I have the same problem as Maha. I still not sure the usefulness of
> these two methods.
> For example, if i have a blob object (let's say I get it from openFiles
> ()), then I use captureBlob() to capture the content of that blobs
> object. Moreover, I can read it back to a blob object. What is the
> usefulness of that, because it cannot be stored in a database? My
> requirement is after user select image files to upload, I want to
> display those file back to the user. How can I achieve this?

These methods provide two distinct things.

1) Persistent storage of a Blob on the local machine. True, its not in
an SQL database, but it is there on disk available for retrieval
nonetheless.

2) The ability to map the file to a url such that when the browser
navigates to that url or refers to that url as the src of some content
displaying surface area (say and <img> tag), the local resource will
be retrieved and loaded into that surface area.

If your interested in saving the contents of a file chosen with the
FilePicker while offline, and later retrieving it and using
HttpRequest to send it to a server.... you can do that.

If your interested in showing an image file chosen with the FilePicker
in an <img> tag... you can do that too.


> Thanks
> Chamnap
>

Reply via email to