473,491 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Image

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

Dim checksSignature As New
Bitmap("C:\Inetpub\wwwroot\rateQuest\images\checks Signature.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
Nov 20 '05 #1
6 1075
"IntraRELY" <In*******@yahoo.com> schrieb
I need to access an image, for now I am using:

Dim checksSignature As New
Bitmap("C:\Inetpub\wwwroot\rateQuest\images\checks Signature.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.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
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.
--------------------
From: "Armin Zingler" <az*******@freenet.de>
References: <ex**************@TK2MSFTNGP11.phx.gbl>
Subject: Re: Image
Date: Fri, 12 Dec 2003 21:14:17 +0100
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#w**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: d8e20.d.pppool.de 80.184.142.32
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:163694
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

"IntraRELY" <In*******@yahoo.com> schrieb
I need to access an image, for now I am using:

Dim checksSignature As New
Bitmap("C:\Inetpub\wwwroot\rateQuest\images\checks Signature.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.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html


Nov 20 '05 #3
"Peter Huang" <v-******@online.microsoft.com> schrieb
Hi Armin,

I write Some code for you.


For me? Thank you, but it's not necessary.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
Cor
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
Nov 20 '05 #5
"Cor" <no*@non.com> schrieb im Newsbeitrag
news:ut**************@TK2MSFTNGP11.phx.gbl...
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?

--
Armin

Nov 20 '05 #6
Cor
I saw it, I dont know why I always write but when I mean because.
But it was an accident I saw, but later on he does it again he told us he would do and did.


I correct it.

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

:-)))

Cor
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3330
by: Pierre Tremblay | last post by:
Hi! I am trying to display an image in my html document. The document contains the following line: <td class="Input"><img...
3
11735
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
8
2590
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical)...
6
3293
by: QuasiChameleon | last post by:
Hi, I'm trying to create a grayscale image class that reads and writes grayscale Targa format. This works well with smaller images, but corrupts larger images and creates a "Segmentation fault...
15
31763
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
7
11596
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
15
5297
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
6
3060
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
1
11046
by: bharathv6 | last post by:
i need to do is modify the image in memory like resizing the image in memory etc ... with out saving it disk as i have to return back the image with out saving it disk PIL supports the use of...
0
10704
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.