Originariamente inviato da TheMay88
internetexplorer.application
questa non so cosa sia...
Se per "salvarla in locale" intendi scaricarla (non ho ben capito), prova con questa Sub, a cui passi il nome dell'immagine (attento al percorso):
codice:
Private Sub DownloadFile(ByVal filename As String)
Response.Expires = -1
Dim strPath As String = Me.Server.MapPath(filename)
Dim file As FileInfo = New FileInfo(strPath)
If file.Exists Then
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=""" & file.Name & """")
Response.AddHeader("Content-Length", file.Length.ToString())
Response.ContentType = "application/octet-stream"
' Spara il file al client
Response.TransmitFile(strPath)
Response.End()
Else
Response.Write("Impossibile scaricare il file.")
End If
End Sub