Get an Image from the Web
http://insight.coupons.com/OfferServices/GetImageCache.aspx?msk=y&cid=SEEEUSRI
That is linked to an image how do I download this to my computer
This is the code I found but it give me the Error "Invalid Parameter"
Dim b() As Byte = GetImageFromURL("http://insight.coupons.com/OfferServices/GetImageCache.aspx?msk=y&cid=SEEEUSRI")
Dim st As System.IO.MemoryStream = New System.IO.MemoryStream(b)
Dim img As System.Drawing.Bitmap = New System.Drawing.Bitmap(st)
Function GetImageFromURL(ByVal url As String) As Byte()
Dim wr As System.Net.HttpWebRequest = DirectCast(System.Net.WebRequest.Create(url), System.Net.HttpWebRequest)
Dim wresponse As System.Net.HttpWebResponse = DirectCast(wr.GetResponse, System.Net.HttpWebResponse)
Dim responseStream As System.IO.Stream = wresponse.GetResponseStream
Dim br As System.IO.BinaryReader = New System.IO.BinaryReader(responseStream)
Dim bytesize As Long = wresponse.ContentLength
Return br.ReadBytes(bytesize)
End Function
Any help would be great

