Re: Include image from local directory to webform?
- From: "Siva M" <shiva_sm@xxxxxxxxxxxxxxxxx>
- Date: Sun, 1 Jan 2006 22:46:43 +0530
Perhaps you can consider using HTTP Handlers. Here is a sample:
http://www.developer.com/net/asp/article.php/3565541
Basically, your ProcessRequest will read the image file from the folder as
requested and stream it back to the client.
"MilanB" <MilanB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AD0DC7CC-C4A3-4319-AF9F-BC14E460A8A6@xxxxxxxxxxxxxxxx
Thank you for your answer.
But I'm interest is there a way to avoid creating virtual directory. Just
allication to read from local dir, and sream into HTML response. Somthing
like pooling picture from database.
Thanks you.
MilanB
"Siva M" wrote:
> Create a virtual folder pointing to your image folder and use that virt.
> folder for any <img> tags:
>
> <img src='/imgvirtdir/myimage.jpg">
>
> Will that work for you?
>
> "MilanB" <MilanB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:E05C19E9-05AC-45FF-8532-EFD953A188C5@xxxxxxxxxxxxxxxx
> Hello,
>
> I have images in local server directory.
> Can I stream down image into HTML WebForm, on place reserved to specific
> image, and show to clients.
> I wish to avoid coping images to virtual directory.
>
>
>
> Thank you
>
>
>
.
- References:
- Re: Include image from local directory to webform?
- From: Siva M
- Re: Include image from local directory to webform?
- Prev by Date: Re: Net runtime crash
- Next by Date: WebResourceAttribute: cannot get a valid web resource url!
- Previous by thread: Re: Include image from local directory to webform?
- Next by thread: Re: Strange Problem When Using Browser back button
- Index(es):