Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > img src not working properly

Reply
Thread Tools

img src not working properly

 
 
Alberto
Guest
Posts: n/a
 
      08-06-2004
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?
 
Reply With Quote
 
 
 
 
Konrad Rotuski
Guest
Posts: n/a
 
      08-13-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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?



 
Reply With Quote
 
 
 
 
Alberto
Guest
Posts: n/a
 
      08-14-2004
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" <konrad@_SPAM_KILLER_eracent.com> wrote in message news:<e9$(E-Mail Removed)>...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > 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?

 
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
What does the SRC in <IMG SRC> stand for? pheadxdll HTML 16 06-06-2007 02:45 AM
<txt src= ...> equivalent of <img src= ...> Steve Richter ASP .Net 3 02-09-2006 08:44 PM
img src in HtmlImage is not always diplayed Alberto ASP .Net 0 05-26-2004 02:44 PM
Specifying the src attribute on an IMG which is not on the server.. Rithish Javascript 2 05-11-2004 04:33 AM
src.jar (src.zip) missing on Mac OSX Java 1.4.1 installation? Greg Johnson Java 4 09-18-2003 07:21 AM



Advertisments