|
Re: I can't figure out how to get an image's location in the local cache: msg#00001mozilla.devel.dom
> > 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> |
|---|---|---|
| Previous by Date: | Re: I can't figure out how to get an image's location in the local cache: 00001, Gervase Markham |
|---|---|
| Next by Date: | Re: Mozilla Win32 WebControl: 00001, Mike Thompson |
| Previous by Thread: | Re: I can't figure out how to get an image's location in the local cachei: 00001, Gervase Markham |
| Next by Thread: | Re: Mozilla Win32 WebControl: 00001, Mike Thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |