Results 1 to 4 of 4

Thread: How to read Zip files without having to download them on Web Server!?

  1. #1
    Join Date
    Jan 2010
    Posts
    70

    How to read Zip files without having to download them on Web Server!?

    I have the following problem!!

    I just lie on a web server (only access via HTTP) a zip file. in this zip file contains two text files! One of these text files I have read and process. If I have are the ZipDatein locally, then I get them read without problems. I have it already I have read through the individual ZipEntrys, even if the file is still on the Web server, but I do not get it out the content read out the ZipEntrys. Can any of you help me because I am just full on the tube..

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: How to read Zip files without having to download them on Web Server!?

    You not have properly described your problem. What happens then? Is there an exception? What? It would be better if you provide your coding that you are trying to use.!! Otherwise it would not be clear what exactly the problem that you are facing. And hence you cannot get the satisfied solution. So the only thing is that you should provide the coding.

  3. #3
    Join Date
    Jan 2010
    Posts
    70

    Re: How to read Zip files without having to download them on Web Server!?

    Extremely sorry for an inconvenience. So, I have following code:
    Code:
    ... 
    URL url = new URL (zipUrl); 
    ZipInputStream inputStream = new ZipInputStream (url.openStream ()); 
    while (inputStream.available () == 1) ( 
    ZipEntry ZipEntry = inputStream.getNextEntry (); 
    if (zipEntry.getName (). startsWith (zipEntrySuffix)) ( 
    ... 
    ... 
    ) 
    ) 
    ...
    But I think just not how I approach the ZipEntry object can be read. Up to an exception, I have not come not at all, because I somehow think of anything like what I could in the situation if (zipEntry.getName (). StartsWith (zipEntrySuffix)) block fallow deer could work it.

  4. #4
    Join Date
    Dec 2008
    Posts
    202

    Re: How to read Zip files without having to download them on Web Server!?

    Well, I understand the chain up to the last line, but in turn three, I see no relation to the first. You should check the following coding:
    Code:
    URL url = new URL; 
    URLConnection conn = url.openConnection (); 
    InputStream in = conn.getInputStream (); 
    
    ZipInputStream zin = new ZipInputStream (url.openStream ());

Similar Threads

  1. Replies: 5
    Last Post: 28-01-2012, 09:21 AM
  2. Read MS Project files from C#
    By shyjo in forum Software Development
    Replies: 6
    Last Post: 16-07-2011, 04:06 PM
  3. Replies: 3
    Last Post: 14-12-2010, 04:10 AM
  4. Unable to read avi files
    By Axton in forum Windows Software
    Replies: 3
    Last Post: 13-04-2009, 11:57 AM
  5. Replies: 0
    Last Post: 29-01-2009, 06:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,715,090,880.97116 seconds with 17 queries