Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Get an Image via http-URL's

Posted on 1997-04-02
1
Medium Priority
?
236 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 40 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month20 days, 19 hours left to enroll

810 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