File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java URL Quick & Dirty code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java URL Quick & Dirty code" Watch "Java URL Quick & Dirty code" New topic

Java URL Quick & Dirty code

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I bascially wanted to write some code that would allow me to download all of the following images to my local computer from this url:
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
Here's something quick that won't compile as is. You'll have to write the code for parsing the String and for reading and writing the binary data streams.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

Go to this page and scroll down to Example 7-1 It isn't exactly what you are looking for but it gives you a start.
All I did was google "java example code url" and that page was the first hit.
[ November 10, 2003: Message edited by: William Barnes ]

Please ignore post, I have no idea what I am talking about.
It is sorta covered in the JavaRanch Style Guide.
subject: Java URL Quick & Dirty code
Similar Threads
PA #1.....picture association
Help in picking spectacles
Servers down? Pants too?
serve static HTML from app context rather than ROOT
No Weapons in the Bar After 1830 hrs !