11-10-2009 05:24 AM
I m using BrowserField Demo.Every time to show the image it's accessing the network,but it's already accessed from network.How can I cache the image?
I have posted about it before,But no body reply.
Can anybody pleasee help me regarding this?
Thanx in advance.
04-19-2010 07:13 PM
Basically you need to implement HttpConnection interface in class which persist downloaded data and when the RenderingApplication requests an http resource this class provides the persisted data.
Very well organized caching framework is implemented in the project LogicMail. Look at the BrowserFieldRenderer.java, inside it there is a private class LocalDataHttpConnection which stores and retrieves bytes from the file system. What to do with these bytes is up to you.