473,808 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Want to unzip a partial zipped text CSV file

I am currently using ASP.Net / C# to partially upload the first
100K of a CSV file to programatticall y extract the header information
for field mapping against our database and for a test sample of records

to check some validation before entire file is uploaded. (Files can be
HUGE)
Question - what about when the file is Zipped? Can I still upload the
first 100K of the file and somehow unzip that portion of the file? Or
do I need the entire file to unzip even a portion of it. I don't care
if there's a blown checksum type of thing.
Any guidance would be greatly appreciated
JohnnyH

Nov 17 '05 #1
1 2508
johnnyh wrote:
I am currently using ASP.Net / C# to partially upload the first
100K of a CSV file to programatticall y extract the header information
for field mapping against our database and for a test sample of records

to check some validation before entire file is uploaded. (Files can be
HUGE)
Question - what about when the file is Zipped? Can I still upload the
first 100K of the file and somehow unzip that portion of the file? Or
do I need the entire file to unzip even a portion of it. I don't care
if there's a blown checksum type of thing.
Any guidance would be greatly appreciated
JohnnyH

I would not think this would be possible as there are no guarantees
about what order the zipped file will be in.
I am by no means a zip expert though.

JB
:)
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6197
by: MN | last post by:
How to unzip or expand a tar or zipped file from a C# application. Do we have a dotnet class to do this kind of work? Thanks MN
3
4534
by: Jim | last post by:
I have a user who works remotely who just does not understand the concept of zipping and unzipping files no matter how many times I explain it. I need to create something for her that will do the following: * She receives an outlook message with a zipped file and opens the message. * She opens an Access "Utilities" database and clicks a button labeled "Unzip updated database from eMail message" * Somehow the code behind the button...
10
4524
by: Yogi_Bear_79 | last post by:
pardon my ignorance as I am a self-taught hobbyist programmer. I am curious after reading up on SharpZipLib. Can I embed a zipped txt file in my program? Then either read from within the zip file or unzip and read it? I currently have an embedded text file that contains a list that is read into an array. I'm always looking to save space. And I could reduce my file size 75% if it was zipped! I have looked at the SharpZipLib web site,...
4
1986
by: ACaunter | last post by:
Can some please help me.. i've asked this question before and i'll get people writing back with links to http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx, or the easyzipunzip website... However, none of these are too easy to use.. one you have to pay $400 for, and the other is written in c# and i'm having difficulty changing it into asp.net so i can use it.. is it possible for anyone to show me the simpilist way to enter a...
1
1170
by: johnnyh | last post by:
I am currently using ASP.Net / VB.Net to partially upload the first 100K of a CSV file to programattically extract the header information for field mapping against our database and for a test sample of records to check some validation before entire file is uploaded. (Files can be HUGE) Question - what about when the file is Zipped? Can I still upload the first 100K of the file and somehow unzip that portion of the file? Or do I need the...
2
2214
by: Jim Andersen | last post by:
I am going to build a webapp. Our users are not allowed to download certain files, so I need to show files in a directory (.doc, .ppt, ???) and the user can then convert them to PDF and download that PDF to his PC instead of the original. If it's a zip-archive they should be able to unzip the file, and then maybe PDF the files in the zip-archive. Any tips, suggestions, links to products etc are most welcome.
6
5782
by: rajarora | last post by:
Hi , I faced a very strange problem when I unzip a zip file on my solaris workstation. Actually I wanted to transfer a folder, say it TEST which contains some sub-folders inside it from windows to solaris machine. So I zipped this folder to TEST.ZIP on my windows machine. Then from my windows machine, I started ftp from command prompt and connected to my solaris machine and I copied this TEST.ZIP folder using put command to my solaris...
2
6397
by: somsub | last post by:
Hi all, Here is my samle code use strict ; use warnings ; use IO::Uncompress::Unzip ; When I compiled this three lines of code in win32 I got error like below.
3
3676
by: divyakgowda | last post by:
Hello everyone, My problem is, i am uploading a zipped file and extracting the contents and saving in a directory.How can i check whether the uploading zipped file contains only .swf files inside, before or after extraction.Please help how can i do this? Its urgent. Thanks, amulyab
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.