How does asp store images when you download "website complete" in your browser

Discussion in 'C#' started by ycc, Sep 23, 2010.

  1. #1
    Hello,

    I know very little about asp so please reply in basic terms.

    I use Firefox surf to a web-page with images. I choose Archive > Save as > "Web-page complete" and the page is saved as one html file "example.htm" and one folder "example_files".

    I want to make absolutely certain that the images of the page are saved together with the page on the disk.

    I have deleted cache, unplugged my internet connection and when I reload the page in Firefox, the images reload quckly. I therefore assume that I have somehow saved the images.

    However, I cannot find the images in the folder example_files. Instead I find many asp-files like "showimg_001.asp" etc.

    Is there any way I can "bring out" the pictures from the web-page? (Right-click seems to be blocked by the web-site.)

    Can I be sure that the images are stored on the disk properly?

    Thank you
     
    Last edited: Sep 23, 2010
    ycc, Sep 23, 2010 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    The page would use asp to load the pictures from a database or file. But yes the pictures will be saved onto the disk.
     
    camjohnson95, Sep 24, 2010 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How the pictures are saved depends on how your browser does this and has nothing to do with ASP.

    As Cam says however, it sounds like the original ASP files are outputing images either from a db or for some other reason a file hence the .asp file extension.

    If they are simply jpgs then just renaming them would enable you to easily open them in alternative applications. Likewise, seeing as you have saved it locally, just deleting the javascript thats blocking right clicking would also enable you to then resave them.
     
    AstarothSolutions, Sep 24, 2010 IP
  4. ycc

    ycc Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you for your replies. You are absolutely right. The .asp-files are pictures. I can rename the .asp files (.jpg, .gif, .tif, .png ...) and they will open properly as pictures in Firefox. I got a little confused when I saw the .asp extension which I haven't worked with.

    Thanks. Thread solved.
     
    ycc, Sep 24, 2010 IP
  5. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You should also be able to look at the source code of the saved page to see the image URLs. The fact that asp maybe running server-side scripts doesn't really matter. It is HTML coming down to the browser unless the images are packed into a slideshow, flash, or similar container.

    One question. . . why are you so interested in saving images from a site that has gone through some trouble to prevent people from saving their images? ;-)
     
    longcall911, Sep 30, 2010 IP
  6. ycc

    ycc Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    When I look in the source-code I do only see urls like
    <img src=....show_image.asp?value=1234...>
    I guess the show_image.asp is a function that picks a picture from a database or somewhere else on the disk. I do not know the urls of the actual pictures.

    My friend is a collector of Chiinese rationing tickets. He wanted to save the pictures of some of them, but saving individual pages would have overloaded his disk. (Too much stuff repeating on each page.) This is just a hobby program to make his disk not overload and to save him some monotonous clicking.
     
    ycc, Oct 18, 2010 IP