Questions tagged [gzipinputstream]

GzipInputStream is a Java class for reading data that are compressed in gzip format. It is also available on Android.

GzipInputStream is a Java class for reading data that are compressed in gzip format. It is also available on Android.

On .NET, there is a similar class called GZipStream: use

125 questions
0
votes
2 answers

Java GzipInputStream into DataInputStream

I have a problem with GZip in Java. Currently i work with files that are gzipped. One file in one gzip archive. And if i decompress them manually and then parse them everything works. But i want to automate this with Java and GZipInputStream but it…
kapodes
  • 316
  • 2
  • 7
0
votes
0 answers

Is Java's GZipInputStream thread safe?

I have many gzipped files which contain records that I am trying to sequence into a single consolidated file. CPU power is not a constraint. I want to spin up threads that read from GZipInputStreams as necessary. The amount that will be read from…
0
votes
0 answers

Socket exception - connection reset - can't replicate

UPDATE I've found that this error is related to the GZIP streams. If I remove them and just use Object streams rather than GZIP wrapped with Object streams then my issues are resolved, no exception. I have no idea why this is, if anyone can help…
james4563
  • 169
  • 1
  • 13
0
votes
1 answer

How to find out Corrupt gz file in Java

I have to unzip a .gz file for which I am using following code: FileInputStream fis = null; FileOutputStream fos = null; GZIPInputStream gin = null; try { File file = new File(getPath(), zipName); fis…
coretechie
  • 1,050
  • 16
  • 38
0
votes
4 answers

JAVA not in gzip format error

I have an inputstream and I tried to process it but it gave me this error "not in gzip format" but the file is in gzip format "Content-Encoding: gzip" protected String readResponse(InputStream is) throws IOException { StringBuffer string; int…
abdulla-alajmi
  • 491
  • 1
  • 9
  • 17
0
votes
1 answer

How to download audio file in Android

I have a published Android application that has an HTTP audio download process. This processed worked fine until today. whats wrong with my code? final URL downloadFileUrl = new URL(mPerformanceSong.getPreviewUrl()); final HttpURLConnection…
Hector
  • 4,016
  • 21
  • 112
  • 211
0
votes
1 answer

how to download .gz files to the temp folder using GZIPINPUT/GZIPOUTPUT stream

Im downloading all gz format file from X site.After downloading all the files into temp folder when i exact with 0KB ..Pls help me out with code comments..Any changes in the code URL site = new URL (sb.toString()); URLConnection uc =…
0
votes
2 answers

Can't get Java's GZIPInputStream to read "gzip" response from server when using "Range" header

I've got a bit of code I've been using for a while to fetch data from a web server and a few months ago, I added compression support which seems to be working well for "regular" HTTP responses where the whole document is contained in the response.…
Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77
0
votes
2 answers

GZIPInputStream throws exception when reading GZIP FIle

I am trying to read files from a public anonymous ftp and I am running in to a problem. I can read the plain text files just fine, but when I try to read in gzip files, I get this exception: Exception in thread "main" java.util.zip.ZipException:…
CaTalyst.X
  • 1,645
  • 13
  • 16
0
votes
0 answers

best way to debug a gzip error

we have an app that works great most of the time. notably it works always if we turn off compression (gzip) between the server and client when sending data out for rendering. when we have gzip turned on (preferred mode) - then sometimes - rarely but…
Randy
  • 16,480
  • 1
  • 37
  • 55
0
votes
2 answers

size limit gzipinputstream

GZIP has a size limitation of 4GB, got it from http://www.gzip.org/#faq10 There are some patches mentioned in the above link to be able to read a file more than 4gb. I am using GZIPInputStream to read a .gz file. And I am able to read sizes more…
Abi
  • 1,335
  • 2
  • 15
  • 28
0
votes
0 answers

decompression of chunked compressed data

I need to download gzipped data chunkwise and append it to file. The problem is that when i read from the HTTP conn, it is not sending total compressed byte array at a single time(stream). my Application is looking for Gzip header in the left over…
shashankkb
  • 23
  • 6
0
votes
0 answers

GZIPInputStream format issues

I'm having trouble reading through a GZipped BlueCoat log file. The first six lines of the file are a header, and these lines can be read perfectly, but none of the following content. I have tried unzipping the log manually, and then trying to read…
MikeB
  • 580
  • 3
  • 18
0
votes
2 answers

GZIPInputStream fails to read concatenated .gz files bug resolved?

Does anyone know if this bug https://bugs.java.com/bugdatabase/view_bug?bug_id=2192186 has been resolved yet? It is causing issues on our side in data collection from archive or archives. Looks like this is a very old…
user236215
  • 7,278
  • 23
  • 59
  • 87
0
votes
0 answers

Java CRC error when using a dictionary with GZIP

This is honestly frustrating because I think I know the cause but at the same time I cannot pinpoint when it is happening in my code. Basically, for this assignment, we're supposed to read in an input stream, split it into 128 byte blocks, and…
user1777900
  • 975
  • 3
  • 13
  • 27
1 2 3
8
9