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.
 

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