Re: Image from memory
- From: "Mirek Endys" <MirekE@xxxxxxxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 15:12:51 +0100
My idea is:
1) to create an dll, that will contain my WebControl (as for example
asp:button is)
2) I will able (and users that will have this dll referenced) to put the
control into page (as asp:button) and it will draw own face, without
needings to refer into an saved bitmap..
Do you understand this?
Thanks for help.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%2343k5aTPGHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
Not 100% sure what you are asking. If you want to stream an image to a
browser, it needs to be in a separate request. If you page is text, and
you want to have an image in there, you need an image tag..you can't mix
plain text and binary data within a single response.
If your only concern is that the code needs to be inside an assembly
instead of a page, your best solution is probably to build an HttpHandler.
Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Mirek Endys" <MirekE@xxxxxxxxxxxxxxxx> wrote in message
news:urnuRRTPGHA.2828@xxxxxxxxxxxxxxxxxxxxxxx
well, but in this case i need an page "someImage.aspx"... but I need make
it as webcontrol.dll. It will looks like image, but the source cannot be
an URL, but an memory stream. Is it possible???
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%238BdsuSPGHA.3408@xxxxxxxxxxxxxxxxxxxxxxx
It's prety easy...if you do:
<img src="someImage.aspx" />
you can then goto someImage.aspx and get the contents from the database
and write them directly to the Response.OutputStream.
You can probably simply get the blob of data into a byte[] array and
output it using Response.WriteBinary.. make sure to call
REsponse.Clear() and set the proper content-type :)
Karl
--
http://www.openmymind.net/
"Mirek Endys" <MirekE@xxxxxxxxxxxxxxxx> wrote in message
news:eKtDvRSPGHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
Is there a posibility to make web control, that is drawing an image to
webpage without needing to save it into a file?
(for example, i will save picture into db server and I want to show it
without saving it into file on file system)
Thanks
.
- References:
- Image from memory
- From: Mirek Endys
- Re: Image from memory
- From: Mirek Endys
- Image from memory
- Prev by Date: RE: asp error handling
- Next by Date: Problems with current site when use .NET framework 2.0
- Previous by thread: Re: Image from memory
- Next by thread: Re: Image from memory
- Index(es):