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 Titan3 Answers
New AnswerSee 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
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message