Article View: borland.public.jbuilder.java.language
Article #16951Re: differing results with getLastModified()
From: Richard Wilkman
Date: Wed, 06 Jan 1999 00:00
Date: Wed, 06 Jan 1999 00:00
68 lines
2751 bytes
2751 bytes
Rich: Just a guess, but that 18k is probably the info needed to establish the connection to the object and get enough info about it to get the size? If you make the images larger do you see the same 18k or is it proportionally larger? (After this we draw a pentagram in the sand and sacrifice a Duke plush toy). -Rich Rich Downing wrote: > > I posted the following to comp.lang.java.programmer but didn't get a > response, so I thought I'd give it a try here. > > I have an applet which downloads images from the web. However, I only > want to download the image if it has changed. I am using: > > . > . > . > > URLConnection con = Url.openConnection(); > con.setUseCaches(false); > lCurrentModified = con.getLastModified(); > etc. > . > . > > I notice that in Netscape this causes about 300 bytes to be > transferred, which is about what I would expect. (The image size is > appx 35k). > > However, in both Internet Explorer (V 4) and using Opera with the Java > 1.1.6 plugin between 17k and 18k is transferred. That seems to be > what the compressed image size might be. > > Can it be that both these browsers are downloading the entire image > when I am just requesting the time stamp? This is beating my > bandwidth to death. > > Anyone have any ideas????? > > Rich > > ---------------------------------------------------------------------- > Richard V. Downing Home: http://rvd.home.mindspring.com > Senior Software Engineer Work: http://www.vsin.com > VideoConferencing Systems, Inc. Email: rvd@mindspring.com > Norcross, Ga > ------------ When surrounded by wolves 'tis best to howl ------------- -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<36938A7B.4C4F141F@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<369376aa.1558964@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,cbd8498c40543e4a X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: differing results with getLastModified() Date: 1999/01/06 Message-ID: <36938A7B.4C4F141F@inprise.com> X-Deja-AN: 429444043 Content-Transfer-Encoding: 7bit References: <369376aa.1558964@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language