473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 1074
"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
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.