Want to unzip a partial zipped text CSV file

J

johnnyh

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 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
 
D

Dick Grier

Hi,

Why not prepare two files, both ZIPped. The first file would be the sample,
the second the real one. Send the first, and if everything is OK, then send
the second (or whatever).

This wouldn't be any more programming work, IMO, and would meet the
objectives without doing anything out of the ordinary.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top