All Questions
25
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
1
answer
528
views
Deflate floating point data bytes encoded as Base64
Good Day!
I would like ask for your help on decompressing String back to its original data.
Here's the document that was sent to me by the provider.
Data description
First part describes the threshold ...
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 ...
4
votes
1
answer
3k
views
Deflate string C#
I tried to deflate a string I got from a websocket connection, but everytime I try to run this code I get an Error. I also tried to get the bytes directly from the string with an ascii encoding but it ...
0
votes
1
answer
513
views
WCF service raises System.IO.InvalidDataException
I try to connect to the NetSuite OpenAir API from a .NET console application using a WCF client. I generated the proxy by adding a service connection and using the following WSDL: http://sandbox....
0
votes
1
answer
65
views
Decode Chunked (gzip deflate) data using c# or jquery
I am consuming a web-service and I am getting Chunked Data. The data is Unicode character and showing as expected in browser. But, after fetching data, I need to store it to database as Unicode char ...
0
votes
1
answer
241
views
DeflateStream.Read always returns zero
I have a perfectly valid zip file, which contains exactly one packed file, that can be decompressed via external utilities, and it doesn't let anything useful out of DeflateStream. I've removed first ...
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 ...
3
votes
2
answers
5k
views
Compression in IIS 8.5 not successful, stating ALREADY_CONTENT_ENCODING
I am trying to debug the issue of why my pages are not being GZIP'ed or deflated according to YSLOW. I ended up enabling Failed Request Logs on the server and was able to see the failed reason of why ...
-1
votes
1
answer
70
views
.NET deflating a file with both compressed and uncompressed data
In .NET, I have a file that has a 1024-byte block of (uncompressed) header information, followed by a 1MB block of data that is compressed with Deflate. How do I decompress just the data block?
I ...
2
votes
1
answer
1k
views
Why I have different compression byte array sizes using DeflateStream on different machines
I'm compressing short string on my machine using DeflateStream
public byte[] Compress(byte[] oryginalBytes)
{
using (var msi = new MemoryStream(oryginalBytes))
using (var mso = new ...
0
votes
1
answer
864
views
DeflateStream not working with buffer processed from PHP implementation
I'm trying to decompress buffer compressed by php deflate implementation. Here's the code:
public static void CopyTo(Stream src, Stream dest)
{
byte[] bytes = new byte[4096];
...
0
votes
1
answer
258
views
How do i DEFLATE properly? (both .NET and MONO gets it wrong)
I can't comprehend. It looks correct.
Windows gets me
21008 80373 0.2613813
80372 80372 1
Deflate on .NET isn't good (it shouldnt be 26%) but more importantly the decompressed size is 1 off. ...
4
votes
6
answers
2k
views
Why is deflate making my data BIGGER?
I wanted to compress some data so i thought i'd run the stream by deflate
It went from 304 bytes to 578. Thats 1.9x larger. I was trying to compress it.....
What am i doing wrong here?
using (...
1
vote
2
answers
4k
views
HttpWebRequest gets slower when adding an Interval
Testing different possibilities to download the source of a webpage I got the following results (Average time in ms to google.com, 9gag.com):
Plain HttpWebRequest: 169, 360
Gzip HttpWebRequest: ...