Ive got a script which uploads a file in sections in VB.net, and before uploading converts it to Base64 so it can be uploaded:-
input.Read(buffer, 0, count)
Dim encoding As New System.Text.UTF8Encoding
Dim postData As String = "valBlob=" & UrlEncode(System.Convert.ToBase64String(buffer))
The data seems to upload fine, however when I try and decode the data in PHP, the file becomes corrupt:-
$fp = fopen("/home/09S6.dat", "a");
fputs ($fp, base64_decode($_POST['valBlob']));
I belive its an issue with encrypting and decrypting, but have no idea of the correct way of donig this.