Stream

  • Thread starter Thread starter JTE
  • Start date Start date
J

JTE

Hi everybody,

I made a simple Wndows application in VS2005. A form with a button and
a picturebox.
From a public webservice i get a bytearray which i put in a stream and
place it in the
picturebox.

Dim xx As New System.IO.MemoryStream(yy)
PictureBox1.Image = Image.FromStream(xx)
PictureBox1.SizeMode = PictureBoxSizeMode.CenterImage

Now i want to do the same in a webapplication, but i can't find a
picturebox, only a image object.
How can i put the incomming bytearray in a image?

Thanks,

Jurgen
 
JTE said:
I made a simple Wndows application in VS2005. A form with a button and
a picturebox.
place it in the
picturebox.

Dim xx As New System.IO.MemoryStream(yy)
PictureBox1.Image = Image.FromStream(xx)
PictureBox1.SizeMode = PictureBoxSizeMode.CenterImage

Now i want to do the same in a webapplication, but i can't find a
picturebox, only a image object.
How can i put the incomming bytearray in a image?

You can save the byte array to an image file on the server and make the
'img' element's 'src' attribute point to the image file on the server.
Popular browsers like Microsoft Internet Explorer do not support embedding
of image data into HTML pages.
 
Hello Herfried K. Wagner [MVP],

Actually, IE does support embedded images in MHT (web archive) files. I'm
not recommending this, just a comment.

-Boo
 
GhostInAK said:
Actually, IE does support embedded images in MHT (web archive) files. I'm
not recommending this, just a comment.

That's true, but I was referring to the 'data' pseudo protocol used in HTML
and supported by some user agents.
 
Back
Top