Re: Java Newbie... Read file at HTTP



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! :-(

.