Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
38 Points
525 Posts
Oct 06, 2008 04:27 PM|LINK
basically, the method returns a system.array object
the data is like :
(1) = 255 (2) = 216 (3) = 255
etc etc
when i try to cast it put it in a memory stream like this:
Dim str As System.IO.MemoryStream = New System.IO.MemoryStream(arr)
it gives me an error:
System.InvalidCastException = {"Unable to cast object of type 'System.Byte[*]' to type 'System.Byte[]'."}
Any ideas?
aspd
Member
38 Points
525 Posts
Re: how do i read a byte array into a stream?
Oct 06, 2008 04:27 PM|LINK
basically, the method returns a system.array object
the data is like :
(1) = 255
(2) = 216
(3) = 255
etc etc
when i try to cast it put it in a memory stream like this:
Dim str As System.IO.MemoryStream = New System.IO.MemoryStream(arr)
it gives me an error:
System.InvalidCastException = {"Unable to cast object of type 'System.Byte[*]' to type 'System.Byte[]'."}
Any ideas?