public static int Encode(byte[] data, int off, int length, Stream outStream) { byte[] array = Base64.Encode(data, off, length); outStream.Write(array, 0, array.Length); return(array.Length); }
public static byte[] Encode(byte[] data) { return(Base64.Encode(data, 0, data.Length)); }