Image Control

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I am trying to display images with image controls but browsers are only
displaying half of the image. Every time the user refreshes it shows a
little more of the picture. I am using Windows XP with IIS and I checked
the logfile. It says:

00:18:17 66.180.233.66 GET /Webapplication1/WebBar.gif 206

I checked what 206 is and it says that it means partial content. All I can
find on this is that I must have specified a range but I don't even know how
this is done. Thank you in advance for any suggestions.
 
Hi Jason,

try setting width and heght properties of the image object.

HTH,
Stefano Mostarda MCP
Rome Italy
 
Seems that you're supplying a very large image so it makes the browser try
to download it in parts. (You don't have to supply the boundary parameter as
it is supplied by the browser)

Try to make the image smaller by choosing a lower resolution. It may also
help if you try to cut the image into parts or use software to convert the
image file to those which will display blur image first then gradually
sharpens as more parts is downloaded.(I don't remember what this technique
is called)
 
Thanks, but it is happening even on a 34KB GIF file. I have tried everthing
to get it fixed and I can't figure it out.
 
Jason said:
Absolute URL's do not work at all. Just a red "x".

Ok, that bothers me.

What happens when you type the same absolute URL into the address bar of an
IE window? Second, turn on IIS logging and see whether the IE window and/or
your application actually request the image.
 
I'd suggest to use relative link first and then right click -> properties to
see the "real" absolute address of the image if the relative link works.
 
Back
Top