Image

  • Thread starter Thread starter IntraRELY
  • Start date Start date
I

IntraRELY

I need to access an image, for now I am using:

Dim checksSignature As New
Bitmap("C:\Inetpub\wwwroot\rateQuest\images\checksSignature.jpg")

I would like to access it though a url if, that is possible. How do I do
that?

TIA,

Steve Wofford
www.IntraRELY.com
 
IntraRELY said:
I need to access an image, for now I am using:

Dim checksSignature As New
Bitmap("C:\Inetpub\wwwroot\rateQuest\images\checksSignature.jpg")

I would like to access it though a url if, that is possible. How do I
do that?

You can create a System.Net.WebClient object and call one of it's methods:
Downloadfile, Downloaddata, OpenRead.
 
Hi Armin,

I write Some code for you.
Imports System.Net
Imports System.IO
Imports System.Drawing
Module Module1
Sub Main()
' Create a new WebClient instance.
Dim myWebClient As New WebClient
Dim uriString As String = "http://www.google.com/images/logo.gif"
' Download home page data.
Console.WriteLine("Accessing {0} ...", uriString)
' Open a stream to point to the data stream coming from the Web
resource.
Dim myStream As Stream = myWebClient.OpenRead(uriString)
Console.WriteLine(ControlChars.Cr + "Saving Data :" +
ControlChars.Cr)
Dim bt As New Bitmap(myStream)
bt.Save("c:\test.gif")
' Close the stream.
myStream.Close()
End Sub
End Module

If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
 
Hi Armin,

It looks if Peter was still a little bit sleepy, he even did quote on the
wrong way.

But it was an accident I saw, but later on he does it again he told us he
would do and did.

Cor
 
Cor said:
Hi Armin,

It looks if Peter was still a little bit sleepy, he even did quote on the
wrong way.

But it was an accident I saw, but later on he does it again he told us he
would do and did.


uummmmhhh.... yes Cor, yes yes... you feel ok?
 
I saw it, I dont know why I always write but when I mean because.

I correct it.

But I saw that it was an accident, because later on he does the quoting
again in a nice way.

:-)))

Cor
 
Back
Top