.jpg to outputstream?

cstangor

Member
Licensed User
Longtime User
I can't seem to write a jpg to an outputstream for saving to a blob in SQL.

Thanks.

Dim photo As Bitmap
photo.Initialize(File.DirDefaultExternal, "mycanvas.jpg")
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray(1000)
OutputStream1= photo.WriteToStream(OutputStream1, 10, "JPEG")

Creates: Cannot assign void value on the last line above.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…