Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 31-07-2010
Member
 
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..

Reply With Quote
  #2  
Old 31-07-2010
Member
 
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.
Reply With Quote
  #3  
Old 31-07-2010
Member
 
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.
Reply With Quote
  #4  
Old 31-07-2010
Member
 
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 ());
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to read Zip files without having to download them on Web Server!?"
Thread Thread Starter Forum Replies Last Post
PS3 is unable to read files on Windows Vista Media Server IJAYA Media Player 5 28-01-2012 09:21 AM
Read MS Project files from C# shyjo Software Development 6 16-07-2011 04:06 PM
Can copy and read the new files but cannot read or delete old contents in the hard drive GOOL Hardware Peripherals 3 14-12-2010 04:10 AM
Unable to read avi files Axton Windows Software 3 13-04-2009 11:57 AM
Download Free Software to Convert Excel XLS to HTML and Read or Write XLTM, XLMX files Maximus() Windows Software 0 29-01-2009 06:31 PM


All times are GMT +5.5. The time now is 06:43 PM.