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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top