Hi
I am trying to get an image from a URL that needs basic authentication. I am declaring
the url as follows:
URL url = new URL ("http://username:[EMAIL PROTECTED]/images/image.jpg");
Then I am using javax.swing.imageIcon to load the image into an Image object.
The whole thing works where basic authentication is not required.
How can I get an image/document that needs basic authentication?
Any clue??
Thanks in advance
Anubrata
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets