Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Saving multiple images

  1. #1
    Junior Member Dario's Avatar
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Saving multiple images

    My explanation is very vague please bare with me.

    I know some basic java.

    I would like to make a program that grabs images from a site.

    the site is http://example.com/database1/image001.jpg which open to the link and contains the image only.
    the database contains up to X amount of image and increments by 1. Example 001.jpg,002.jpg... to 100.jpg.

    I don't really know how to start making this program.

    How to access the browser/saving the images/redirecting to somewhere on my hard drive.

    *I don't want to go and right click save for over 100 images =(. And i'm kind of curious on how to program this.
    Last edited by Dario; January 25th, 2011 at 01:35 PM.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Saving multiple images

    Start by going through this tutorial: Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)

    If you're really just trying to access files from the web, it's not much different from accessing them on your hard drive.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member Dario's Avatar
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Saving multiple images

    Quote Originally Posted by KevinWorkman View Post
    Start by going through this tutorial: Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)

    If you're really just trying to access files from the web, it's not much different from accessing them on your hard drive.
    ah i see i thought it was different when accessing through a browser for some reason. thanks i think i know how to do it now.

    but i'm still kind of confusing on how to save the image?
    Last edited by Dario; January 25th, 2011 at 01:46 PM.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Saving multiple images

    Quote Originally Posted by Dario View Post
    ah i see i thought it was different when accessing through a browser for some reason.
    It might be different if you're accessing it through a database (full disclosure- I don't really know anything about database programming), but if you're just using a URL, it's pretty much the same.

    Quote Originally Posted by Dario View Post
    thanks i think i know how to do it now.
    No problem.

    Quote Originally Posted by Dario View Post
    but i'm still kind of confusing on how to save the image?
    That tutorial should include instructions on how to save Files.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Problem of saving
    By oluwaseun in forum Java Theory & Questions
    Replies: 2
    Last Post: December 16th, 2010, 03:27 PM
  2. need help with saving data
    By bardd in forum Java Theory & Questions
    Replies: 5
    Last Post: September 19th, 2010, 02:33 PM
  3. saving xml file
    By LOL in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 18th, 2010, 05:45 AM
  4. [SOLVED] Saving A File?
    By MysticDeath in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: August 1st, 2009, 11:56 AM
  5. [SOLVED] Need to display multiple images from database on a webpage
    By raghuprasad in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: May 13th, 2009, 03:15 AM