Last post Dec 05, 2016 05:22 AM by Nan Yu
Dec 02, 2016 06:54 AM|hoitm|LINK
i have many file gz file in gz file i have one text file, i want to upload gz file and auto decompress and insert into my database.
how to do this. plz suggest me thanks
(my text file have format)
xxxx | yyyyy | x |x
Dec 02, 2016 09:20 AM|PatriceSc|LINK
And the first problem you have is?
Uploading and parsing files is quite widely done so you should find tons of references for that. .NET includes gz support ( https://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream(v=vs.110).aspx)
and more recently zip support (https://msdn.microsoft.com/en-us/library/system.io.compression.ziparchive(v=vs.110).aspx )
For tar, you'll likely have to use a 3rd party library (google tar asp.net)
Else please tell us what is the very first problem you have when trying to do what you describe (the upload doesn't work for now ?). Ah or you don't even want to upload them using a web page but rather using ftp maybe ??? We need some context to understand
the current blocking point.
Dec 05, 2016 05:22 AM|Nan Yu|LINK
As @PatriceSc said , you'd better tell us what is your problem in your current step to solve your problem .In addition , you could refer to below articles for how to compress and decompress of files :
How to: Compress and Extract Files
Compress and Decompress of files using GZipStream in Asp.Net
File Upload & Compression in ASP.Net