dcsimg
Results 1 to 2 of 2

Thread: How to save Specific Image From web browser caches vb.net?

  1. #1

    Thread Starter
    Member buzz4rd's Avatar
    Join Date
    Feb 2012
    Posts
    37

    Exclamation How to save Specific Image From web browser caches vb.net?

    Code:
      Dim doc As IHTMLDocument2 = _
          DirectCast(webBrowser1.Document.DomDocument, IHTMLDocument2)
    
       Dim imgRange As IHTMLControlRange = _
          DirectCast(DirectCast(doc.body, _
          HTMLBody).createControlRange(), IHTMLControlRange)
    
       For Each img As IHTMLImgElement In doc.images
        imgRange.add(DirectCast(img, IHTMLControlElement))
    
        imgRange.execCommand("Copy", False, Nothing)
    
        Using bmp As Bitmap = DirectCast( _
            Clipboard.GetDataObject().GetData(DataFormats.Bitmap), Bitmap)
            bmp.Save("C:\" + img.nameProp)
        End Using
       Next
    I already used this but did not get specific Images. Is there any other way please ?
    please

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,313

    Re: How to save Specific Image From web browser caches vb.net?

    Can you show me the direct link to this image please.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width