|
| <prev next> |
Re: I can't figure out how to get an image's location in the local cache: msg#00000mozilla.devel.dom
Robert E. Boughner wrote: 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. 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. I worked all this out with a little research at XULPlanet ;-) Gerv |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | Re: I can't figure out how to get an image's location in the local cache: 00000, Mike Thompson |
|---|---|
| Next by Thread: | Re: I can't figure out how to get an image's location in the local cache: 00000, Mike Thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |