How to convert Byte Array To String and Vice versa

How to convert Byte Array To String and Viceversa?

KarthikG | Answered# (1)
Reply For This Question
Answer(s) Posted
How to convert Byte Array To String and Vice versa

To Convert Byte To String:

var encryptString = Convert.ToBase64String(sourceByte);

 

To Convert String To Byte:

var encBytes = Convert.FromBase64String(encryptString);

sivasankari4gl | Answered# (1)
Post Your Answer
   Please login to post your answer.
  Member Login
  Email Address  
  Password  
   Sign Up?  
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.