conversion from Image to binary

  • Thread starter Thread starter jean-louis cantin
  • Start date Start date
J

jean-louis cantin

Hello,

I would like to save an image into a Base64Binary (Byte[]) field in a
DataTable in a DataSet.

How can i do that?

Thanks
:?:

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
jean-louis cantin said:
I would like to save an image into a Base64Binary (Byte[]) field in a
DataTable in a DataSet.

How can i do that?

Save the image to a MemoryStream, then use ToArray on the MemoryStream
to get a byte array.
 
Back
Top