How to a .gz file in an VB.net?

  • Thread starter Thread starter KC
  • Start date Start date
K

KC

I've trying to read a webpage. I built a procedure to do this nicely for an
ordinary page, my problem is reading compressed files. I have a page that (I
believe) is a zip file http://...omdata.gz. When I read this through IE it
reads it fine (although sometimes it tries to download the file...not every
time, which is odd), but when I try reading the page through my application
I get garbage characters. I'm guessing IE decompresses the file before
display.

How do I do that in VB.net. Treat the file like it's text that I can display
(or read) like a regular page?
 
I've trying to read a webpage. I built a procedure to do this nicely
an ordinary page, my problem is reading compressed files. I have a
page that (I
believe) is a zip file http://...omdata.gz. When I read this through IE it
reads it fine (although sometimes it tries to download the file...not every
time, which is odd), but when I try reading the page through my application I
get garbage characters. I'm guessing IE decompresses the file before display.
How do I do that in VB.net. Treat the file like it's text that I can display
(or read) like a regular page?

IP*Works! Zip contains a Gzip component that
can uncompress and compress gzips. Also, IP*Works! the base package has an HTTP
component that supports gzip compression in HTTP retreivals (like
IE).

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-
 
Back
Top