Hi
in a data exchange between apps and servers, I've added srvr.GzipEnabled = True optimization.
I measured the size of the stream with and without parameter, but the dimensions are the same.
Here's how I measure the dimensions: Log("Numero di byes ricevuti dal server : " & j.GetInputStream.BytesAvailable)
This is the B4A code:
Sub ReadObject (In As InputStream) As Object
Dim out As OutputStream
out.InitializeToBytesArray(0)
File.Copy2(In, out)
Dim raf2 As RandomAccessFile
raf2.Initialize3(out.ToBytesArray, False)
Dim res As Object = raf2.ReadB4XObject(0)
raf2.Close
Return
Is it correct or should I look on the other side?