Dim ms As System.IO.MemoryStream = New System.IO.MemoryStream
datarow1("Logo") = ms.ToArray
Select allOpen in new window
ReadAllBytes is implemented in an obvious way. It uses the using-statement on a FileStream. Then it loops through the file and puts the bytes into an array.
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent