Im trying to convert a byte array to a string and then back. My issue is I dont seem to be able to encode/decode it right.
Ive got some code:-
input.Read(buffer, 0, count)
Dim encoding As New System.Text.UTF8Encoding
Dim postData As String = "strID=" & fileGUID & "&valBlob=" & UrlEncode(System.Convert.ToBase64String(buffer))
Which gives a result, however if I was to open the file where Im getting the buffer from, it doesnt look anything like the String PostData.
Im not too hot on the subject of encoding and decoding, but what I would like to do is open a file, and see it the same as in Notepad (makes it easier to see where my code is going wrong).
Is it possible to convert a byte array into a string, the same as notepad does?
Thanks in advance