img src not working properly

Discussion in 'ASP .Net Web Controls' started by Alberto, Aug 6, 2004.

  1. Alberto

    Alberto Guest

    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?
     
    Alberto, Aug 6, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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?
     
    Konrad Rotuski, Aug 13, 2004
    #2
    1. Advertising

  3. Alberto

    Alberto Guest

    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$>...
    > 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" <> wrote in message
    > news:...
    > > 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?
     
    Alberto, Aug 14, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alberto
    Replies:
    0
    Views:
    338
    Alberto
    May 26, 2004
  2. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,184
    Laurent Bugnion
    Feb 9, 2006
  3. Greg Johnson
    Replies:
    4
    Views:
    3,141
  4. pheadxdll
    Replies:
    16
    Views:
    3,886
    Neredbojias
    Jun 6, 2007
  5. Rithish
    Replies:
    2
    Views:
    77
    Rithish
    May 11, 2004
Loading...

Share This Page