logo       

Re: I can't figure out how to get an image's location in the local cache: msg#00001

mozilla.devel.dom

Subject: Re: I can't figure out how to get an image's location in the local cache

> > Read the documentation at www.w3c.org since Mozilla is standards based
> > and closely adheres to the recommendations given there.
>
> That is, frankly, a truly useless piece of advice, in general but also
> particularly for the person concerned. Please don't give advice unless
> you know what the person is asking, and know that the advice will help.

Agreed ;)

> Mike: I'm afraid I don't know how to do what you want. You probably need
> to start digging into the interfaces of the cache object, work out if
> you can extract raw data, and then write it to disk with the help of
> perhaps jsLib, which has file I/O functions for extensions.
> http://xulplanet.com/references/xpcomref/group_Network.html#Cache
>
> You can get an nsIFile out of an nsICacheEntryInfo. You could get the
> nsICacheEntryInfo by visiting every cache entry using
> nsICacheService.visitEntries, but there might be a better way.
>
> Matching the image clicked with a cache entry may well be the hard
> thing. Doing the visit may be the only way to find it.

Thanks, I actually gave up and contracted it out. But I'll forward this
information and this thread to the person now doing it.

> I worked all this out with a little research at XULPlanet ;-)

You're a better man than I..

Mike.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise