Results 1 to 2 of 2
  1. #1
    shakeel is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default Image from pages

    Hi everyone,

    I have created a load function, which accepts a URL, verifies the URL and returns the image inside a JInternalFrame in java so that manipulation of this image can be done. However, when one access an HTML page, there are many image or icons used on that page. However, only URLs with an image extension is accepted.

    But on webpages, many images or icons are used. I want to be able to type the link of a website and retrieve all the images found in this website and displays them. However I am unable to do so.

    Does anyone has an idea about this can be achieved?

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    a) Be sure you are not violating copyrights of the webpages and/or images by downloading and modifying those images - and yes, downloading, modifying (or not), and using that image in any way would typically qualify as a violation of copyright b) Parse the webpage and look for URL's that point to images (gif, jpg) using a regular expression (see Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes))

Similar Threads

  1. how to use Multiple GUI pages
    By jonwymore in forum SWT / JFace
    Replies: 3
    Last Post: 12-06-2010, 11:13 AM
  2. can i process two web pages at once?
    By saurabh208 in forum Java Servlet
    Replies: 2
    Last Post: 08-25-2010, 09:11 AM
  3. Java Server Pages
    By ninian in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 12-20-2008, 02:49 AM
  4. JSP pages with no caching
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-31-2008, 12:53 PM
  5. Getting all the pages from a domain
    By eva in forum New To Java
    Replies: 0
    Last Post: 12-25-2007, 11:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •