Solved

Get an Image via http-URL's

Posted on 1997-04-02
1
205 Views
Last Modified: 2010-04-16
How can I load an Image from an http-WebSite into my
e.g Standaloneprogram-Canvas. I know their are some undocumented function in sun.net... Where can I find documentation? Is their a easier way to perform this?
I use JDK 1.02.
0
Comment
Question by:faber
1 Comment
 
LVL 2

Accepted Solution

by:
majkl earned 20 total points
ID: 1219376
Sorry, but from standalone application you cannot load gif from URL. Why should you do this ?
As far I know, there is no more support from sun.net.* classes in next versions of Java. So. Forget it.
Load images locally, then again what if you give aplication to someone who has not access to inet. He would be lost.
It is true updates would be much easier, but perhaps this will be possible in future, now it is at the moment impossible.

0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why does the Android Studio logcat show this error when the user presses the button? 2 46
tomcat not starting 6 45
Java exception bubble up 2 18
String array comparison 4 34
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question