Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Get FileName from GZipped files

$
0
0

Hello Everyone,

I am working on a module in which I need to download files from FTP. These files are GZipped files and will be uploaded by client on to FTP.

I have downloaded these files at my local machine and successfully decompress these files using GZipStream in C#.

But there is a problem when I decompress the files using ALzip tool and using GZipStream

When I used ALzip, decompressed file name (XYZ.DAT) is different from the Compressed file name (ABC.DAT.GZ),
whereas in GZipStream we need to pass the new file name which could be anything.

I need the actual file name while decompressing the GZipped file. I don't want to pass any file name for decompressing the files. 

Is there any way or extraction method for reading GZipped files from where I can extract the actual file with name and extension?

Is there any way or method (in C# which supports GZipped) from where I can get the actual file name?

Thanks in advance.

 

Kind Regards,
Saurabh Kumar


Viewing all articles
Browse latest Browse all 1764

Trending Articles