All Questions
Tagged with deflate deflatestream
12
questions
0
votes
0
answers
43
views
.net DeflateStream fails to decode a PDF stream object content
I created a PDF using the export function of Word 2019.
I'm parsing the PDF as a text and I capture the content of the stream object:
4 0 obj
<</Filter/FlateDecode/Length 344>>
stream
...
2
votes
0
answers
281
views
How can I find the end of a DEFLATE stream in a larger byte array?
I'm working with an arbitrary array of bytes which contains two raw DEFLATE streams concatenated. There is no metadata that tells where the first stream ends or the next one begins. Is there a way to ...
0
votes
1
answer
264
views
Java - How to compress using deflater with dynamic byte size
How to compress byte array using deflater?
I tried with deflate inflate example from Oracle page. It worked fine.
My doubt is how to make byte[] size dynamic.?
And how to calculate before and after ...
4
votes
1
answer
7k
views
HttpClient AutomaticDecompression working with gzip, not deflate
Using both httpbin and Postman Echo (which appear to be the same service, effectively), I'm able to successfully get a gzip'd response with their testing endpoint like this:
var cli = new HttpClient(...
3
votes
2
answers
937
views
Deflating data from MSZIP format
I'm trying to read a compressed binary .x mesh file but my decompression is failing. The file is basically some directx header info and then a bunch of data in MSZIP format (i.e. 2 bytes are an int ...
0
votes
1
answer
5k
views
Create in memory zip from a file
Is DeflateStream supposed to create archived stream that can be stored as standard .zip archive?
I'm trying to create in-memory zip (to be sent remotely) from a local file.
I used a DeflateStream to ...
0
votes
1
answer
702
views
C# DeflateStream Decompress with C++
I compressed data whit DeflateStream. I can decompress whit c#, but how can i decompress whit c++ (VS2013 RC)? I tried inflate whit zlib. Not worked.
1
vote
1
answer
1k
views
How can I use the DeflateStream class on one line in a file?
I have a file which contains plaintext mixed in with some compressed text, for example:
Version 01
Maker SomeCompany
l 73
mark
h�22V0P���w�/�+Q0���L)�66□ // This line was compressed using ...
0
votes
1
answer
282
views
DeflateStream compress/decompress inconsitency
I have the following data from a photoshop file that uses zip-compression (RFC1951):
250, 255, 159, 1, 47, 248, 63, 42, 63, 172, 229, 1, 2, 12, 0, 209, 255, 31, 225
Which decompresses to the ...
1
vote
1
answer
2k
views
.NET DeflateStream Usage
I am trying to utilize the INFLATE compression stream in .NET using a DeflateStream. My code throws an InvalidDataException although I know that the data I am passing has been correctly processed by ...
4
votes
3
answers
2k
views
"Sync flush" for Zlib Deflate
I need a zlib deflate compressed stream. In my implementation I must use a single stream over the entire session. during this session small chunks of data will be passed through the compressed stream. ...
4
votes
3
answers
5k
views
Puzzling .Net C# DeflateStream problem
I wonder if anyone can shed some light on an issue that is driving me nuts:
I am writing a compression decompression test class. To test it, I am serializing a dataset to a memory stream, ...