Results 1 to 2 of 2
  1. #1
    05bit044 is offline Member
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Question save a webpage.....?

    how to save a web page onto the hard disk using a java program.....?I created a socket connection with the server... but i am getting only the source HTML code and not the other image files that are embedded in the page......?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default

    That's how the browser does it. It first gets the HTML ,then it scans thru the HTML for the rest of the stuff it needs.
    Your code will have to search thru the HTML for all the files that are referenced. Look in the doc for the HTML statement the gets images, scan for it and pick out the image filename (could be after SRC=) and do another HTTP get for that file. etc

Similar Threads

  1. How can i save the data Internally(auto save)
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 2
    Last Post: 11-01-2010, 08:31 PM
  2. Secure Webpage for Logins
    By chandpuri in forum Advanced Java
    Replies: 3
    Last Post: 09-22-2009, 05:42 PM
  3. print webpage through applet
    By shakti singh in forum Java Applets
    Replies: 1
    Last Post: 07-22-2008, 07:17 PM
  4. post info to a webpage
    By kmp in forum Networking
    Replies: 1
    Last Post: 03-22-2008, 02:20 AM
  5. Replies: 0
    Last Post: 07-10-2007, 09:13 PM

Posting Permissions

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