this code working
why this not working ???
B4X:
Dim data() As Byte
Dim compress As CompressedStreams
data = "Playing with in-memory compression.".GetBytes("UTF8")
Dim compressed(), decompressed() As Byte
compressed = compress.CompressBytes(data, "zlib")
decompressed = compress.DecompressBytes(compressed, "zlib")
Msgbox(BytesToString(decompressed,0, decompressed.Length, "UTF8"), "")
why this not working ???
B4X:
Dim data() As Byte
Dim compress As CompressedStreams
data = "Playing with in-memory compression.".GetBytes("UTF8")
Dim compressed(), decompressed() As Byte
compressed = compress.CompressBytes(data, "zlib")
Dim x As String
x=BytesToString(compressed,0,compressed.Length,"UTF8")
decompressed = compress.DecompressBytes(x.getbytes("UTF8"), "zlib")
Msgbox(BytesToString(decompressed,0, decompressed.Length, "UTF8"), "")