Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8792845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:02:24+00:00 2026-06-13T23:02:24+00:00

How do I to download an embedded image using web browser control of VB.NET,

  • 0

How do I to download an embedded image using web browser control of VB.NET, that we can achieve by right clicking on the image and doing ‘save picture as’?


I am developing a VB.NET project that crawls through a particular website and downloads its contents including any images embedded into it. Now my problem is that I can not use a web client and HTTP request/response classes to serve my purpose because of the security that is maintained on the site.

The web site is maintained with some JavaScript and jQuery. Also, it maintains the session through some set of cookies and hidden fields that it tracks on each single URL request. If it finds any discontinuity then it redirects to the login page.

I found the solution to this problem by using a web browser component which is doing great for me in maintaining security.

But my next set of problems is storing of the contents other than an HTML source file like embedded images which is my main concern right now, and I am sure many of the software developers must be facing the same.

I found various post in C# which I modified, but it didn’t work for me, like in C# code for saving an entire web page? (with images/formatting).

Also, I have got a project addressing the same problem in Save image from web-browser control in Visual Basic 2005, but for this my company policies won’t allow me.

How do I automate the procedure of right click and ‘save picture as’?

Is there any real solution? If not, then is there any alternate solution like copying from temp folders. If yes, please provide a solution!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:02:24+00:00Added an answer on June 13, 2026 at 11:02 pm

    I didn’t get the answer for first approach, that is, downloading with the web browser component, but I got the alternative as copying from the ‘Temporary Internet Files’ Folder.

    Here is my code snippet that is doing the job for me.

    Private Function get_Image(ByVal src As String)
        '******* code for storing Images from temporary internet files folder.......
        Dim filename As String = get_File()
        Dim gifFiles As String() = Directory.GetFiles("C:\Documents and Settings\123\Local Settings\Temporary Internet Files\", "*.*", SearchOption.AllDirectories)
        Dim imgno As Integer = 0
        For Each file As String In gifFiles
            'Dim fsi As String = Directory.GetLastWriteTime(file).ToString
            If My.Computer.FileSystem.FileExists(file) And file.Contains("attachDisplay") And Not filename.Contains("File") Then  ' This is HardCoded part for my images that are having dynamic url as my base_URL/attachDisplay?_XYZ (so in temp it is storing as attachDisplay[i]; i=1,2...)
                Dim curFileDT As Date = Directory.GetLastWriteTime(file)
                If Date.Compare(lastFileDT, curFileDT) = -1 Then ' if Last file date is before than current File write time
                    imgno += 1
    
                    My.Computer.FileSystem.CopyFile(file, filename & " Img No." & imgno & file.Substring(file.LastIndexOf(".")), True)
                End If
            End If
        Next
        lastFileDT = Date.Now 'My lastFileDT variable is declared at class level and first initialization at form load.
        '*******
    End Function
    

    This is not a proper way for downloading images, but it’s currently doing the job for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We all know that fonts can be embedded in web pages now with the
I have a remote embedded system which it is telnet-able. How can I download
In my embedded project am using JTAG interface to download the code and to
I'm using wordpress to create a 'download' popup that goes to a file attachment
I have a Silverlight 4 application that I am running embedded on a web
I download an image from a url to an ec2 instance(wget), process it with
I have a scenario where users can upload an image, OR a video (from
hope someone can help. I appreciate there are a few questions that are similar
I have a hidden embedded QuickTime object on my page that I'm trying to
How can I hide or obfuscate the url of the embedded mov files in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.