Hi. Sorry for my english
I'm trying to send a Blob to MySQL, and StringUtils.EncodeBase64(The_Blob) retruns a string with lots of "+", for then sending that to the PHP method and use base64_decode() and do an SQL Insert... Of course it's not working beacuase the lost "+"
The PHP is just:
Log("getstring= "&job.GetString) ---> getstring= ABC -*/123
Using PostString or PostBytes the result is the same.
Why does the "+" dissapear?
Which method must I use to send strings thant contains "+"? Specially this Blob case.
Thank you!
I'm trying to send a Blob to MySQL, and StringUtils.EncodeBase64(The_Blob) retruns a string with lots of "+", for then sending that to the PHP method and use base64_decode() and do an SQL Insert... Of course it's not working beacuase the lost "+"
B4X:
Dim cadena As String = "p1=ABC+-*/123"
Dim J1 As HttpJob
J1.Initialize("",Me)
'J1.PostString("https://agrosig.net/valleagro/metodos_privados_php/postPHP.php",cadena)
J1.PostBytes("https://agrosig.net/valleagro/metodos_privados_php/postPHP.php",cadena.GetBytes("UTF8") )
Wait For (J1) JobDone(job As HttpJob)
If job.Success Then
Log("getstring= "&job.GetString)
End If
The PHP is just:
PHP:
<?php
$p1 = $_POST["p1"];
print $p1;
?>
Log("getstring= "&job.GetString) ---> getstring= ABC -*/123
Using PostString or PostBytes the result is the same.
Why does the "+" dissapear?
Which method must I use to send strings thant contains "+"? Specially this Blob case.
Thank you!