.NET | Sololearn: Learn to code for FREE!



Any VB.Net developer?? Can anyone explain me how to convert a picture to array of bytes??

11/12/2018 4:50:57 PM

Keerttik Titan

3 Answers

New Answer


See this link https://social.msdn.microsoft.com/Forums/vstudio/en-US/50e769e1-04ad-45c2-afb0-53457208f2f7/convert-image-to-byte-array?forum=vbgeneral


Private function pic_to_byte(byval pic as object)as btye() Dim picbyte as byte() Dim stream as new IO.memorysteam pic.Save(stream, System.Drawing.Imaging.ImageFormat.bmp) picbyte=stream.ToArray Return picbyte End sub


Can anyone send me .net course