I have a java client which is sending some message to an erlang server process listening on TCP.The java client sends the data using outputstream.On the server side i am using following call to uncompress the data after initialising zlib

```
zlib:inflate(ZStream, Data),

```

where Data is binary.I am getting data\_error on this call.
Under what conditions do I get data\_error with zlib.