Load image

Discussion in 'ASP .Net' started by nuhura01@yahoo.com, Feb 28, 2007.

  1. Guest

    Hi all...

    My system contains an image which I have saved it at client side.
    Unfortunately, when users want to view the image, the image doesn't
    loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    form right? I've set the Image URL to be like this:
    ImageUrl="C:\ExportImage.gif".

    I don't want to create a new file for placing the image since other
    clients who don't have the file might not be able to access the image.
    I also don't want to save it at server side since it may cause an
    error if more clients want to access the same image at the same time.
    How could I do this? Can anyone help me...

    Thanks...
     
    , Feb 28, 2007
    #1
    1. Advertising

  2. On Feb 28, 11:13 am, wrote:
    > Hi all...
    >
    > My system contains an image which I have saved it at client side.
    > Unfortunately, when users want to view the image, the image doesn't
    > loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    > form right? I've set the Image URL to be like this:
    > ImageUrl="C:\ExportImage.gif".


    This is wrong. It's your C-drive.

    The image should be on the server, e.g. where you aspx form is
    located.

    then the image url will be

    ImageUrl="ExportImage.gif"


    >
    > I don't want to create a new file for placing the image since other
    > clients who don't have the file might not be able to access the image.


    ??

    > I also don't want to save it at server side since it may cause an
    > error if more clients want to access the same image at the same time.


    In this case the aspx form with link to image will be not available as
    well, don't you think? :)

    This is wrong... image should be on the server. ASP means Active
    SERVER Pages and must be served by the server.


    > How could I do this? Can anyone help me...
    >
    > Thanks...
     
    Alexey Smirnov, Feb 28, 2007
    #2
    1. Advertising

  3. I'm not sure I entirely understand your query; but I would be interested to
    know why you think there would be any contention if the image was stored
    server side?

    An image in a web page will load when the rendering engine meets an <img>
    tag. So to load an image you need something like <img src="path/to/image"
    />

    Am I missing something here?


    Peter


    <> wrote in message
    news:...
    > Hi all...
    >
    > My system contains an image which I have saved it at client side.
    > Unfortunately, when users want to view the image, the image doesn't
    > loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    > form right? I've set the Image URL to be like this:
    > ImageUrl="C:\ExportImage.gif".
    >
    > I don't want to create a new file for placing the image since other
    > clients who don't have the file might not be able to access the image.
    > I also don't want to save it at server side since it may cause an
    > error if more clients want to access the same image at the same time.
    > How could I do this? Can anyone help me...
    >
    > Thanks...
    >
     
    Peter Bradley, Feb 28, 2007
    #3
  4. David Guest

    Hi all,

    I think an example that the OP asked for could be something like a portlet
    or something that the client has defined an image on their own hard disk
    that they want to view. This is fairly valid as a path to the image in an
    IMG tag, but may not render correctly in ImageUrl.

    What the OP could try is file://c:\image.jpg

    (You may need to do file://c:\\image.jpg to make it work though in your
    ..ImageUrl)

    Hope it helps.

    Best regards,
    Dave Colliver.
    http://www.DerbyFOCUS.com
    ~~
    http://www.FOCUSPortals.com - Local franchises available


    "Peter Bradley" <> wrote in message
    news:u6XH$...
    > I'm not sure I entirely understand your query; but I would be interested
    > to know why you think there would be any contention if the image was
    > stored server side?
    >
    > An image in a web page will load when the rendering engine meets an <img>
    > tag. So to load an image you need something like <img src="path/to/image"
    > />
    >
    > Am I missing something here?
    >
    >
    > Peter
    >
    >
    > <> wrote in message
    > news:...
    >> Hi all...
    >>
    >> My system contains an image which I have saved it at client side.
    >> Unfortunately, when users want to view the image, the image doesn't
    >> loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    >> form right? I've set the Image URL to be like this:
    >> ImageUrl="C:\ExportImage.gif".
    >>
    >> I don't want to create a new file for placing the image since other
    >> clients who don't have the file might not be able to access the image.
    >> I also don't want to save it at server side since it may cause an
    >> error if more clients want to access the same image at the same time.
    >> How could I do this? Can anyone help me...
    >>
    >> Thanks...
    >>

    >
    >
     
    David, Feb 28, 2007
    #4
  5. Guest

    On Feb 28, 2:13 am, wrote:
    > Hi all...
    >
    > My system contains an image which I have saved it at client side.
    > Unfortunately, when users want to view the image, the image doesn't
    > loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    > form right? I've set the Image URL to be like this:
    > ImageUrl="C:\ExportImage.gif".
    >
    > I don't want to create a new file for placing the image since other
    > clients who don't have the file might not be able to access the image.
    > I also don't want to save it at server side since it may cause an
    > error if more clients want to access the same image at the same time.
    > How could I do this? Can anyone help me...
    >
    > Thanks...


    Yeah, may be you are right. Sorry... I'm very new with asp.net and
    still learning on that...
    So, what should I do if I want to load the image that is located at
    the C-drive? I've tried to set the image url as

    ImageUrl="ExportImage.gif"

    but it seems doesn't work. Any suggestions?

    Thanks in advance..
     
    , Mar 1, 2007
    #5
  6. Guest

    On Feb 28, 2:27 am, "Alexey Smirnov" <> wrote:
    > On Feb 28, 11:13 am, wrote:
    >
    > > Hi all...

    >
    > > My system contains an image which I have saved it at client side.
    > > Unfortunately, when users want to view the image, the image doesn't
    > > loaded. If i'm not mistaken, it is set at the HTML code of asp.net web
    > > form right? I've set the Image URL to be like this:
    > > ImageUrl="C:\ExportImage.gif".

    >
    > This is wrong. It's your C-drive.
    >
    > The image should be on the server, e.g. where you aspx form is
    > located.
    >
    > then the image url will be
    >
    > ImageUrl="ExportImage.gif"
    >
    >
    >
    > > I don't want to create a new file for placing the image since other
    > > clients who don't have the file might not be able to access the image.

    >
    > ??
    >
    > > I also don't want to save it at server side since it may cause an
    > > error if more clients want to access the same image at the same time.

    >
    > In this case the aspx form with link to image will be not available as
    > well, don't you think? :)
    >
    > This is wrong... image should be on the server. ASP means Active
    > SERVER Pages and must be served by the server.
    >
    >
    >
    > > How could I do this? Can anyone help me...

    >
    > > Thanks...- Hide quoted text -

    >
    > - Show quoted text -


    Yeah, may be you are right. Sorry... I'm very new with asp.net and
    still learning on that...
    So, what should I do if I want to load the image that is located at
    the C-drive? I've tried to set the image url as

    ImageUrl="ExportImage.gif"

    but it seems doesn't work. Any suggestions?

    Thanks in advance..
     
    , Mar 1, 2007
    #6
  7. On Mar 1, 3:17 am, wrote:
    > So, what should I do if I want to load the image that is located at
    > the C-drive?


    I think you don't understand a basic principles...

    Why do you want to load it from the C-drive? It should be from the
    server...

    As far as I know a link to file://c:\\image.jpg will not work by
    default since XP SP2 (file:// is blocked by default) and there is
    absolutely no way to link to the image on a client without changing
    the security settings on the client.


    > I've tried to set the image url as
    > ImageUrl="ExportImage.gif"
    > but it seems doesn't work.


    By using ImageUrl="ExportImage.gif" you refer to ExportImage.gif
    located in the same directory where the ASPX form is located. You have
    to copy ExportImage.gif to the same directory.
     
    Alexey Smirnov, Mar 1, 2007
    #7
    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. Mad Scientist Jr
    Replies:
    7
    Views:
    1,170
    Emma Gumbdough
    Jun 30, 2004
  2. venky

    Page Load and webcontrol page load

    venky, Jul 6, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,108
    venky
    Jul 11, 2005
  3. Blaise

    [image] Optimize image load

    Blaise, Oct 6, 2003, in forum: Java
    Replies:
    3
    Views:
    677
    Blaise
    Oct 7, 2003
  4. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,361
    Kartic
    Jan 26, 2005
  5. lawpoop
    Replies:
    17
    Views:
    754
    Thomas 'PointedEars' Lahn
    Jun 22, 2009
Loading...

Share This Page