PC Review


Reply
Thread Tools Rate Thread

displaying image in VB.net from the web

 
 
=?Utf-8?B?c2Ftc2Ft?=
Guest
Posts: n/a
 
      26th Aug 2004
in VB.net:
How can I get a picture from the web (ex:
http://212.212.212.212/cgi-bin/video.jpg) to display it in a form and to be
able to refresh it every 2 seconds... the pic actually is coming from an
internet cam....
 
Reply With Quote
 
 
 
 
Robert Levy [MS]
Guest
Posts: n/a
 
      28th Aug 2004
Try using the WebRequest class in combination with the Bitmap( Stream )
constructor.

It'll be something like (disclaimer: I haven't tested this):

Dim req as New WebRequest = WebRequest.Create( "http://...." )
Dim Bitmap bmp as New Bitmap( req.GetResponse().GetResponseStream() )



--
Robert Levy
Program Manager
Mobile Devices Product Group
http://blogs.msdn.com/windowsmobile

This posting is provided "AS IS" with no warranties, and confers no
rights.

samsam wrote:
> in VB.net:
> How can I get a picture from the web (ex:
> http://212.212.212.212/cgi-bin/video.jpg) to display it in a form and
> to be able to refresh it every 2 seconds... the pic actually is
> coming from an internet cam....



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image control on form - not displaying the image stored in a file Icebox Microsoft Access Forms 8 2nd Mar 2009 09:52 AM
Help displaying captured image and storing image links RussCRM Microsoft Access Form Coding 0 21st Mar 2008 04:36 PM
Hyperlink to an image in other worksheet, displaying entire image. =?Utf-8?B?dHdpbGxpYW1z?= Microsoft Excel Worksheet Functions 0 7th Feb 2006 10:02 PM
Displaying image after selecting an image file. http://www.visual-basic-data-mining.net/forum Microsoft ASP .NET 0 15th Sep 2004 02:36 PM
Re: Displaying a image (image path is in a field) for each record in a report. Bruce M. Thompson Microsoft Access Reports 0 26th Jul 2003 05:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.