.NET | Sololearn: Learn to code for FREE!

+6

.NET

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

+3

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

+3

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

0

Can anyone send me .net course