Re: Java Newbie... Read file at HTTP
- From: sven.dz@xxxxxxxxx
- Date: 30 Apr 2005 05:34:19 -0700
That's my source... :-(
import java.net.*;
import java.io.*;
class MakeTraffic {
MakeTraffic () {
URL image = new URL("www.darknob.de","IMGA0356.JPG");
URLConnection con = image;
openConnection();
con.setDoInput(true);
con.setUseCaches(false);
InputStream stream = con.getInputStream();
//
stream.close();
con.close();
}
public static void main(String [] args) {
new MakeTraffic();
}
}
Get always errors, I hope that I'm not to stupid for Java! :-(
.
- Follow-Ups:
- Re: Java Newbie... Read file at HTTP
- From: Tor Iver Wilhelmsen
- Re: Java Newbie... Read file at HTTP
- References:
- Java Newbie... Read file at HTTP
- From: sven . dz
- Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke
- Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke
- Re: Java Newbie... Read file at HTTP
- From: sven . dz
- Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke
- Java Newbie... Read file at HTTP
- Prev by Date: Re: How to get the runtime class?
- Next by Date: JMF massive memory leak
- Previous by thread: Re: Java Newbie... Read file at HTTP
- Next by thread: Re: Java Newbie... Read file at HTTP
- Index(es):