G
grawsha2000
Hi,
I'm trying to convert this simple string into image:
Dim bytes() as byte()=System.text.Encoding.ascii.GetBytes("123")
Dim memStream as System.IO.MemoryStream
Dim img as image
memStream.Write(bytes,0.bytes.length)
img=image.fromstream(memStream) ' an error occurs here
vb.net returns an error: "invlaid parameter" for passing stream to the
image.
I don't want to read stream from file, as I am interested in reading
from input string (textbox).
MTIA,
Grawsha
I'm trying to convert this simple string into image:
Dim bytes() as byte()=System.text.Encoding.ascii.GetBytes("123")
Dim memStream as System.IO.MemoryStream
Dim img as image
memStream.Write(bytes,0.bytes.length)
img=image.fromstream(memStream) ' an error occurs here
vb.net returns an error: "invlaid parameter" for passing stream to the
image.
I don't want to read stream from file, as I am interested in reading
from input string (textbox).
MTIA,
Grawsha