Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# store byte array as string

 public static void Main()
    {
        byte[] bytes = Convert.FromBase64String("QUJDMTIz");
        Console.WriteLine("Byte Array is: " + String.Join(" ", bytes));
 
        string str = Convert.ToBase64String(bytes);
        Console.WriteLine("The String is: " + str);
    }
 
PREVIOUS NEXT
Tagged: #store #byte #array #string
ADD COMMENT
Topic
Name
7+3 =