View Single Post
  #1 (permalink)  
Old 08-05-2007, 06:23 PM
cachi cachi is offline
Member
 
Join Date: Jul 2007
Posts: 40
cachi is on a distinguished road
Help with "new URL (getDocumentBase(),MyFileName);"
Hi, Take a look at the following code:
Code:
try{ url=new URL ("http://www.ora.com/images/logo.jpg"); InputStream in = null; in=url.openStream(); BufferedReader bf = null; bf=new BufferedReader(new java.io.InputStreamReader(in)); theString=bf.readLine(); }catch(Exception e){ System.out.println("Something is wrong"); }
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.
What is wrong with it?
I have also tried the
Code:
url=new URL (getDocumentBase(),MyFileName);
But still no effects.
Thanks.
Reply With Quote
Sponsored Links