Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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.</p> <p>Here is my code snippet that is doing the job for me.</p> <pre><code>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 &amp; " Img No." &amp; imgno &amp; 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 </code></pre> <p>This is not a proper way for downloading images, but it's currently doing the job for me. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload