The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Downloading Problem::tried to download 46663 bytes,fetched only 1369 bytes

Posted by krishna on November 01, 2001 at 1:30 AM

hi java guys
using the following code
i tried to download a file which is 46663 bytes i got only 1369 bytes with the following code.

URL url = new URL("http://www.etc..");
URLConncection urlconn= url.openConnection();
urlconn.setUseCaches(false);
urlconn.setRequestProperty("Content-Type","application-octet-stream");
InputStream in =urlconn.getInputStream();
return in;
}catch(MalformedURLException ){...}
catch(IOException ioe){...}

please suggest me a solution for this.
thanks in advance
bye
krishna



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us