Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Image Cache question

Reply
Thread Tools

Image Cache question

 
 
pcouas
Guest
Posts: n/a
 
      02-01-2006
Hi,


I load image, GIF, JPEG and PNG created from an Servlet and it seems
this folloing instruction don't use Cache, Could you confirm me ?
bitmap= Toolkit.getDefaultToolkit().getImage( ap) ;

PS
ap is an URL


So, i try this following code, but i could not add uc.disconnect() and
that's seems not working with PGN file ?

java.net.HttpURLConnection uc
=(java.net.HttpURLConnection)(ap).openConnection() ;
uc.setDefaultUseCaches(true); //Should force the use of caching,
right?
uc.setUseCaches(true); //Redundant, but I'll try anything.
uc.connect();
bitmap = Toolkit.getDefaultToolkit().createImage(prod);


Regards
Philippe

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Cache vs Window System Cache Sergey via DotNetMonster.com ASP .Net 0 11-15-2006 03:33 PM
client-side cache vs server-side cache vs ajax vs asp.net callback =?Utf-8?B?b25l?= ASP .Net 1 03-08-2006 12:25 PM
image cache causes trouble, setInterval and innerHTML fail, together, to get me a new image Jake Barnes Javascript 7 12-08-2005 09:09 AM
Page.Cache vs HttpContext.Current.Cache DesignerX ASP .Net 5 01-20-2004 10:55 PM
Cache::Cache Stale Segments Jeff Nokes Perl 0 09-30-2003 04:34 PM



Advertisments