[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

How to convert System.Drawing.Image to Byte[]?

Stone

10/28/2004 7:15:00 PM

How do I convert an image stored in a System.Drawing.Image variable into a
Byte[] variable?

Olav


1 Answer

Bob Powell

10/28/2004 8:38:00 PM

0

Create a memorystream, save the image to the stream and extract the byte
array from the stream...

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdipl...

The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
Bob's Blog: http://bobpowelldotnet.blogspot.co...






"Olav Tollefsen" <x@y.com> wrote in message
news:eElPyHSvEHA.1300@TK2MSFTNGP14.phx.gbl...
> How do I convert an image stored in a System.Drawing.Image variable into a
> Byte[] variable?
>
> Olav
>
>