Hello, i have a code and get from web php:
And decode into APP with B4A with that:
Can help me to make a inverse proces ??? Make A:
Thanks !!!
B4X:
$gzdata = base64_encode(gzcompress(json_encode($return_arr)));
echo $gzdata;
And decode into APP with B4A with that:
B4X:
Sub decode(texto As String) As String
Dim strResult As String
Dim cs As CompressedStreams
Dim su As StringUtils
Dim bt() As Byte
Dim bc As ByteConverter
Try
bt = su.DecodeBase64(texto)
bt = cs.DecompressBytes(bt, "zlib")
strResult = bc.StringFromBytes(bt, "UTF8")
Return strResult
Catch
Log(LastException)
Return ""
End Try
End Sub
Can help me to make a inverse proces ??? Make A:
B4X:
Sub encode(texto As String) As String
...
Thanks !!!