Skip to main content
0 votes
1 answer
40 views

Reading GZip compressed file from Azure blob and read line by line

I have a gzip file as a blob in my Azure storage. The file contains multiple lines. I need to read it line by line and process it. I can get it to write on a local text file as unencrypted. But I do ...
NutsAndBolts's user avatar
0 votes
0 answers
6 views

C# reading gunzipped 2D array slowly while using BinaryReader

I am writing a binary file that has header information, and then a 2D array: using (FileStream fileStream = new FileStream(filePath, FileMode.Create)) using (GZipStream gzipStream = ...
Miss_Orchid's user avatar
0 votes
0 answers
65 views

Get hashcode of a svgfile inside a zip

I have a zip archive containing svg files, I need to get the hash of the content of the svg files and store them so on next execution I can check if the file has been modified or not. My problem is ...
Vali Moldovan's user avatar
0 votes
0 answers
26 views

Using .Net/RestSharp/Polly how do I get serialized body content before calling execute on the RestClient

I’m developing a vb.net application targeting .Net Framework 4.8 using RestSharp and Polly and I trying to gzip the request that is being sent. My understanding is if I can get hold of the serialized ...
Lyra Leo's user avatar
0 votes
0 answers
63 views

GZipStream does not unzip csv file correctly

For some reason, the file is unzipped incorrectly, the output is a 1KB file, inside there is 1 line of the original file. The archived file is downloaded from here: https://epss.cyentia.com/...
Ruslan_Uterly's user avatar
0 votes
1 answer
35 views

How to Compress the WCF service response using GZIP in c#?

There is a new requirement where I need to Compress the WCF service response in GZIP format and send it to partner systems in C#. How can I achieve this ? I have tried adding the configurations in web....
ADesai's user avatar
  • 1
0 votes
1 answer
357 views

ZipArchive vs GZipStream

When we create a ZipArchive from a memory stream we can check the result for number of entries. Can we do the same for a GZipStream, to know the number of entries ? For example: using var ...
Jawahar's user avatar
  • 223
0 votes
1 answer
868 views

Decompress the Gzip json data in .Net Controller

I'm currently trying to decompress the json data that being passed in from the server side in the controller but keep hitting below error. System.IO.InvalidDataException: 'The archive entry was ...
Anis Fatin Nabila Binti Ardhi's user avatar
2 votes
1 answer
460 views

Convert file to Gzip memory stream, then convert that to Base64 before exporting to text file (or var)

How do I change the below so i can use the Gzip data with [System.Convert]::ToBase64String() instead of an outfile then send THAT output(the b64) to an outfile **I Received these answers from help on ...
PlayLORD-SysOp's user avatar
4 votes
1 answer
421 views

Add compression to B64 conversion for powershell. The conversion works fine I'm not sure how to approach adding gzip or similar compression

I can convert files to B64 then back again, i would like to compress the data before converting to B64. Gzip doesnt have to be used, any type of compression or size reduction is fine, I think ...
PlayLORD-SysOp's user avatar
0 votes
1 answer
215 views

Failing GZIPInputStream

My Java app writes out a gzip compressed object to a file using try-with resources statement. The object is a very basic with a couple of primitive fields and an ArrayList of Integers. It has no ...
Obsyd's user avatar
  • 3
0 votes
0 answers
734 views

How to extract oscdimg.exe from ADK CAB-file?

I have a project where I need to download the oscdimg.exe tool from the Windows 11 ASK. For this I have written this small PS-code which is doing the job, but it still uses the filesystem to store the ...
Carsten's user avatar
  • 2,027
-1 votes
1 answer
332 views

Read from a compressing GZipStream

I'm exploring how to implement an HTTP server in C#. (And before you ask, I know there is Kestrel (and nothing else that isn't obsolete), and I want a much, much smaller application.) So, the response ...
ygoe's user avatar
  • 20k
0 votes
0 answers
128 views

How to improve speed on a Razor page with expire headers and Gzip compression?

When testing my website on tools.pingdom.com I get a warning that I should compress components with Gzip and also that I should add expires headers. I have set Common headers in IIS to 7 days, but ...
Bjørn Hellesylt's user avatar
0 votes
2 answers
406 views

Read and edit the contents of a gzip file?

I am trying to read and edit a file within a gzip file. I can do this with .zip files, but I get an error when trying to read the .gzip file. Search results so far only talk about compressing or ...
Amerigo's user avatar

15 30 50 per page
1
2 3 4 5
22