Results 1 to 2 of 2
Thread: Image from pages
- 03-01-2011, 11:40 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 20
- Rep Power
- 0
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?
- 03-01-2011, 05:30 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,608
- Rep Power
- 5
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
-
how to use Multiple GUI pages
By jonwymore in forum SWT / JFaceReplies: 3Last Post: 12-06-2010, 11:13 AM -
can i process two web pages at once?
By saurabh208 in forum Java ServletReplies: 2Last Post: 08-25-2010, 09:11 AM -
Java Server Pages
By ninian in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 12-20-2008, 02:49 AM -
JSP pages with no caching
By Java Tip in forum Java TipReplies: 0Last Post: 01-31-2008, 12:53 PM -
Getting all the pages from a domain
By eva in forum New To JavaReplies: 0Last Post: 12-25-2007, 11:41 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks