Help with "new URL (getDocumentBase(),MyFileName);"
Hi, Take a look at the following code:
I have put a break point at the first line (url=new...). I have noticed that at execution time an exception occurs "Something is wrong"-->message.
url=new URL ("http://www.ora.com/images/logo.jpg");
InputStream in = null;
BufferedReader bf = null;
bf=new BufferedReader(new java.io.InputStreamReader(in));
System.out.println("Something is wrong");
What is wrong with it?
I have also tried the
But still no effects.
url=new URL (getDocumentBase(),MyFileName);