how do i convert this into vb.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

greetings,
i'm having trouble converting the below c# codes into vb.net, the other
portion of it is working fine except this, cause i do not know how to convert
it. any help provided would be great at this stage.

C# code
new Bitmap(new MemoryStream((byte[])serializerXML.Deserialize(readerText)));

yours truly
 
btw you could just use do individual steps.. i am not sure how flexible
vb.net is

dim byteArray as byte()
byteArray = serializerXML.Deserialize(readerText)
' you will need to typecast if necessary look up for equivalent vb.net code
if you have access to Convet class you could use its method
dim memStream as MemoryStream
memStream = MemoryStream(byteArray)

dim objBitMap as BitMap
objBitMap = BitMap(memStream)

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
 
New Bitmap(New MemoryStream(CType(serializerXML.Deserialize(readerText),
Byte())))


greetings,
i'm having trouble converting the below c# codes into vb.net, the other
portion of it is working fine except this, cause i do not know how to
convert
it. any help provided would be great at this stage.

C# code
new Bitmap(new MemoryStream((byte[])serializerXML.Deserialize(readerText)));

yours truly
 
Back
Top