Avatar of rp
rp
Flag for Portugal

asked on 

Image byte array

In the code below to load an image to a datarow i would like to understand why i need create a memory stream and then convert to byte array.
 Dim ms As System.IO.MemoryStream = New System.IO.MemoryStream
                PicLogotipo.Image.Save(ms, PicLogo.Image.RawFormat)
                datarow1("Logo") = ms.ToArray

Open in new window

Visual Basic.NET

Avatar of undefined
Last Comment
Ark

8/22/2022 - Mon