Fix reading gzipped data
This commit is contained in:
parent
bc0414a436
commit
bf318ae66d
|
@ -30,7 +30,7 @@ public class GzipPacked extends TLObject {
|
||||||
@Override
|
@Override
|
||||||
public void deserialize(final BinaryReader reader) throws ClassNotFoundException {
|
public void deserialize(final BinaryReader reader) throws ClassNotFoundException {
|
||||||
try {
|
try {
|
||||||
final GZIPInputStream gzip = new GZIPInputStream(new ByteArrayInputStream(reader.read()));
|
final GZIPInputStream gzip = new GZIPInputStream(new ByteArrayInputStream(reader.readBytes()));
|
||||||
final ByteArrayOutputStream out = new ByteArrayOutputStream(4096);
|
final ByteArrayOutputStream out = new ByteArrayOutputStream(4096);
|
||||||
final byte[] buffer = new byte[4096];
|
final byte[] buffer = new byte[4096];
|
||||||
int read;
|
int read;
|
||||||
|
|
Loading…
Reference in New Issue