I have a byte[] and I\'m looking for the most efficient way to base64 encode it.
byte[]
The problem is that the built in .Net method Convert.FromBase64
Convert.FromBase64
Based on your edit and comments.. would this be what you're after?
byte[] newByteArray = UTF8Encoding.UTF8.GetBytes(Convert.ToBase64String(currentByteArray));