VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
Go Back  Xtreme Visual Basic Talk > > > VB.NET Convert binary to ascii and ascii to binary


Reply
 
Thread Tools Display Modes
  #1  
Old 08-19-2007, 07:08 AM
antonio0290 antonio0290 is offline
Newcomer
 
Join Date: Aug 2007
Posts: 10
Default VB.NET Convert binary to ascii and ascii to binary


I'd like to convert a string from binary to ascii and from ascii to binary..

As this http://www.guardaqua.it/risorse/binario.php
Reply With Quote
  #2  
Old 08-19-2007, 09:53 AM
aadnk aadnk is offline
Regular
 
Join Date: Aug 2003
Posts: 55
Default

Quote:
Originally Posted by antonio0290 View Post
I'd like to convert a string from binary to ascii and from ascii to binary..
Firstly, use ASCIIEncoding to convert from and to a byte array. Then, use the Convert.ToString(x, 2) and Convert.ToByte(x, 2) functions to convert between the text and binary representations.

I'll post the source code of an implementation, but please, I do recommend you try at this yourself before you have a look at it. It's a good learning experience.
http://pastebin.com/f793504e
Reply With Quote
  #3  
Old 08-19-2007, 11:27 AM
antonio0290 antonio0290 is offline
Newcomer
 
Join Date: Aug 2007
Posts: 10
Talking Thank

Thanks I have tried and I am successful.

Good Forum
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
 
VB.NET Convert binary to ascii and ascii to binary
VB.NET Convert binary to ascii and ascii to binary
 
-->