473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how do i convert this into vb.net

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
Nov 18 '05 #1
3 1418
you might want this for future reference.. its a code converter
http://www.developerfusion.com/utili...sharptovb.aspx

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Asha" <As**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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

Nov 18 '05 #2
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)
"Asha" <As**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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

Nov 18 '05 #3
New Bitmap(New MemoryStream(CType(serializerXML.Deserialize(reade rText),
Byte())))
"Asha" <As**@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
5
by: Andrew V. Romero | last post by:
At work we have an excel file that contains the list of medications and their corresponding strengths. I would like to save the excel file as a text list and paste this list into a javascript...
4
by: Rodusa | last post by:
I am having problem to apply updates into this function below. I tried using cursor for updates, etc. but no success. Sql server keeps telling me that I cannot execute insert or update from inside...
1
by: Swarup | last post by:
I am reading a file (txt, xml, gif, ico, bmp etc) byte by byte and filling it into a byte arry. Now i have to convert it into a string to store it in the database. I use...
3
by: aaa | last post by:
I have a third party DLL that downloads everything from a device to a particular device into the following Hex format: 080 : 13 70 05 00 (Timestamp) 081 : 35 E1 91 F9 9F BF (Mode 1 Supported...
12
by: Brian Henry | last post by:
first question... I have a flat file which unfortinuatly has columns seperated by nulls instead of spaces (a higher up company created it this way for us) is there anyway to do a readline with this...
5
by: Bob Homes | last post by:
In VB6, foreground and background colors of controls had to be assigned a single number. If you knew the RGB values for the color, you still had to convert them into the single number accepatable...
1
by: fatmapatlar | last post by:
I have to convert this script, but i didn't. This is stored procedure of sql. I need to convert to postgresql... if it is possible please help me! Thanks Fatma CREATE PROCEDURE...
3
by: mrajanikrishna | last post by:
Hi Friends, I am accepting a number from the user entered in a textbox. I want to assign to a variable in my code and assignt this to that variable. double num1 = (double)txtNum1.text; ...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.