Hi, i'm using this library https://www.b4x.com/android/forum/t...er-in-your-android-application.25984/#content.
Whenever i try to write bytes to the outpustream with this code:
i get java.io.EOFException: Unexpected end of ZLIB input stream at client side.
Is there something wrong ?
Thanks.
Whenever i try to write bytes to the outpustream with this code:
B4X:
Dim r As Reflector
r.Target = Response
Dim jo As JavaObject = r.GetField("res")
Dim ser As B4XSerializator
Dim out As OutputStream = jo.RunMethod("getOutputStream", Null)
Dim data() As Byte = ser.ConvertObjectToBytes( Object )
out.WriteBytes( data, 0, data.Length )
i get java.io.EOFException: Unexpected end of ZLIB input stream at client side.
B4X:
Sub JobDone ( j as httjob )
if j.success then
dim data() as byte = bit.inpustreamtobytes( j.getinpustream) '< '-- Error
end if
End Sub
Is there something wrong ?
Thanks.