gzipinputstream Questions
2
Solved
Question
See updated question in edit section below
I'm trying to decompress large (~300M) GZIPed files from Amazon S3 on the fly using GZIPInputStream but it only outputs a portion of the file; ...
Haemophiliac asked 30/12, 2016 at 18:19
5
I have a class which has a method that is receiving an object as a parameter.
This method is invoked via RMI.
public RMIClass extends Serializable {
public RMIMethod(MyFile file){
// do stuff
...
Runesmith asked 6/11, 2008 at 21:4
8
Solved
I am attempting to convert the gzipped body of a HTTP response to plaintext. I've taken the byte array of this response and converted it to a ByteArrayInputStream. I've then converted this to a GZI...
Pillion asked 2/9, 2010 at 13:11
3
Solved
Using TextIO.Read transform with a large collection of compressed text files (1000+ files, sizes between 100MB and 1.5GB), we sometimes get the following error:
java.util.zip.ZipException: too man...
Telefilm asked 27/7, 2015 at 8:50
8
Solved
I have a GZIPInputStream that I constructed from another ByteArrayInputStream. I want to know the original (uncompressed) length for the gzip data. Although I can read to the end of the GZIPInputSt...
Circular asked 6/9, 2011 at 8:50
2
Solved
I'm using the new java.net.http classes to handle asynchronous HTTP request+response exchanges, and I'm trying to find a way to have the BodySubscriber handle different encoding types such as gzip....
Discretional asked 19/11, 2018 at 16:39
5
Solved
I have a file in .gz format. The java class for reading this file is GZIPInputStream.
However, this class doesn't extend the BufferedReader class of java. As a result, I am not able to read the fi...
Alp asked 3/7, 2009 at 18:19
9
Solved
I'm using a GZIPInputStream in my program, and I know that the performance would be helped if I could get Java running my program in parallel.
In general, is there a command-line option for the st...
Jeanettajeanette asked 1/1, 2010 at 21:8
6
How can you read GZIP file in Android located in the "ASSETS" (or resources/raw) folder?
I have tried the following code, but my stream size is always 1.
GZIPInputStream fIn = new GZIPInputStream...
Subcontinent asked 2/3, 2010 at 15:18
3
Solved
I request a web page that sends a Content-Encoding: gzip header, but got stuck how to read it..
My code:
try {
URLConnection connection = new URL("http://jquery.org").openConnection();
String...
Gerius asked 19/6, 2012 at 1:11
1
Solved
new BufferedReader(new InputStreamReader(
new GZIPInputStream(s3Service.getObject(bucket, objectKey).getDataInputStream())))
creates Reader that returns null from readLine() after ~100 lines if ...
Watkin asked 7/7, 2015 at 17:42
2
Solved
I have some large base64 encoded data (stored in snappy files in the hadoop filesystem).
This data was originally gzipped text data.
I need to be able to read chunks of this encoded data, decode it...
Composed asked 14/11, 2013 at 14:31
3
Solved
I am trying to use the following Java code to compress and uncompress a String. But the line that creates a new GZipInputStream object out of a new ByteArrayInputStream object throws a "java.util.z...
Intima asked 22/1, 2013 at 19:50
1
Solved
I am everything but the most experienced JAVA user, however, I am quite desperate regarding my problem.
Every time I execute the below code, I receive the following error:
java.util.zip.ZipExcept...
Reiners asked 22/10, 2012 at 19:50
2
I have a method like
public void put(@Nonnull final InputStream inputStream, @Nonnull final String uniqueId) throws PersistenceException {
// a.) create gzip of inputStream
final GZIPInputStrea...
Kronfeld asked 7/9, 2012 at 16:32
1
Solved
I noticed that some of my gzip decoding code seemed to be failing to detect corrupted data. I think that I have traced the problem to the Java GZipInputStream class. In particular, it seems that wh...
Parimutuel asked 11/3, 2011 at 18:3
3
Solved
I call a service which returns a gzipped file. I have the data as an InputStream (courtesy of javax.activation.DataHandler.getInputStream();) from the response.
What I would like to do is, withou...
Openeyed asked 16/11, 2009 at 19:23
2
Solved
I have a Base64 string that's been gzipped in .NET and I would like to convert it back into a string in Java. I'm looking for some Java equivalents to the C# syntax, particularly:
Convert.FromBas...
Dubrovnik asked 10/9, 2009 at 23:34
1
© 2022 - 2024 — McMap. All rights reserved.