img src not working properly

A

Alberto

Hi,

I have an aspx page (showJpeg.aspx) that contains a few HTM image
controls. The src property of the controls is set at runtime like
this, for example
<img src="http://server/getJpeg.aspx?w=100&h=100"> where getJpeg
simply returns a byte[] to the page and I set the Response.ContentType
= "image/jpeg";

If I call the getJpeg.aspx page by itself the output is fast and
reliable.
However when showJpeg.aspx is called (the page that contains the
controls whose source property is populated by getJpeg.aspx) the
results are rather disappointing.

The page, even with ONE image control, loads really slow. Sometimes
the images do not even appear in the control and there is a rather
substantial delay between the loading of the page and the displaying
of the images. The images are very small in size most of them <5k.

What is going on? Anyone?
 
K

Konrad Rotuski

hmm .. this seems really weird ...
... did you play with processModel atributes in machine.config ?

some time ago i was writing same stuff (dynamically generated images in
ASP.NET) and it works pretty nice, even with 5 dynamically generated charts
at one page ...
my suggestion is to look carefully at the code .. if to no avail then look
at the process model attributes in machine.config .. or rewrite getJpeg.aspx
as ASP.NET Handler (.ashx) .. for me it worked faster when it was
implemented as handler

btw, could you get me @gmail account .. ? ;)

regards, Konrad
 
A

Alberto

Konrad,

I am not familiar with the processModel in the machine.config file but
I will take a look.
This problem has been a problem for quite some time. At first I
thought it was because of how my images where generated on the fly,
but after some tests it became clear that the issue was another...not
clear what though at this point.

I will also take a look at the ASP.NET handler.

As for the google account, send me your real email and I will send you
an invitation.

-A

Konrad Rotuski said:
hmm .. this seems really weird ...
.. did you play with processModel atributes in machine.config ?

some time ago i was writing same stuff (dynamically generated images in
ASP.NET) and it works pretty nice, even with 5 dynamically generated charts
at one page ...
my suggestion is to look carefully at the code .. if to no avail then look
at the process model attributes in machine.config .. or rewrite getJpeg.aspx
as ASP.NET Handler (.ashx) .. for me it worked faster when it was
implemented as handler

btw, could you get me @gmail account .. ? ;)

regards, Konrad

Alberto said:
Hi,

I have an aspx page (showJpeg.aspx) that contains a few HTM image
controls. The src property of the controls is set at runtime like
this, for example
<img src="http://server/getJpeg.aspx?w=100&h=100"> where getJpeg
simply returns a byte[] to the page and I set the Response.ContentType
= "image/jpeg";

If I call the getJpeg.aspx page by itself the output is fast and
reliable.
However when showJpeg.aspx is called (the page that contains the
controls whose source property is populated by getJpeg.aspx) the
results are rather disappointing.

The page, even with ONE image control, loads really slow. Sometimes
the images do not even appear in the control and there is a rather
substantial delay between the loading of the page and the displaying
of the images. The images are very small in size most of them <5k.

What is going on? Anyone?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top