Avatar of Masoudgh
Masoudgh asked on

Save the web page with whole related files

hi experts,
I need help with saving web pages in my windows application.
The problem is "How can save the web page with related files?" , I mean when user enter the URL, application get HTML codes and save it in a file and check if this page has images or any other related files then save them beside the main file and change sources of <img> tags to show the saved images instead of main images on the remote server. Like a simple offline viewer.

thanks for your help
.NET ProgrammingVisual Basic.NETC#

Avatar of undefined
Last Comment
Tom Knowlton

8/22/2022 - Mon

Are you familar with the Microsoft "Web Archive" (*.mht) file format?   I think it will do exactly what you're talking about

Here is an article that might be helpful:  http://www.eggheadcafe.com/articles/20040527.asp

(there are lots of other examples too)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Tom Knowlton

Can you elaborate on how you extracted the images from the stream?

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck