473,683 Members | 3,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URI Formats are not supported when PictureBox.Imag e Loads, How to load http images to picturebox in windows application

Dear Friends,
I am making one RSS News Reader Desktop application in c#. Where I will show
the images from website. I am generating xml file on server. like
http://www.zeetelevision.com/myxml.xml

Problem is
PictureBox1.Ima ge =
Image.FromFile( "http://www.zeetelevisi on.com/images/today.jpg");

Its giving me error, URI path not supported..

How should I do this. What is the right way?

Regards
Sachin Korgaonkar

--
"A life spent making mistakes is not only more honorable but more
useful than a life spent doing nothing."
--George Bernard Shaw
Nov 16 '05 #1
2 12987
Use HttpWebRequest and System.Drawing. Image.FromStrea m:
PictureBox1.Ima ge
=
System.Net.Http WebRequest.Crea te("http://www.zeetelevisi on.com/images/today.jpg").Get Response
().GetResponseS tream();
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"thedebugge r" <sa************ ***@cyquator.es selgroup.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Dear Friends,
I am making one RSS News Reader Desktop application in c#. Where I will
show
the images from website. I am generating xml file on server. like
http://www.zeetelevision.com/myxml.xml

Problem is
PictureBox1.Ima ge =
Image.FromFile( "http://www.zeetelevisi on.com/images/today.jpg");

Its giving me error, URI path not supported..

How should I do this. What is the right way?

Regards
Sachin Korgaonkar

--
"A life spent making mistakes is not only more honorable but more
useful than a life spent doing nothing."
--George Bernard Shaw

Nov 16 '05 #2
Sorry;
PictureBox1.Ima ge
= Image.FromStrea m(
System.Net.Http WebRequest.Crea te("http://www.zeetelevisi on.com/images/today.jpg").Get Response
().GetResponseS tream());
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Dennis Myrén" <de****@oslokb. no> wrote in message
news:r7******** **********@news 2.e.nsc.no...
Use HttpWebRequest and System.Drawing. Image.FromStrea m:
PictureBox1.Ima ge
=
System.Net.Http WebRequest.Crea te("http://www.zeetelevisi on.com/images/today.jpg").Get Response
().GetResponseS tream();
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"thedebugge r" <sa************ ***@cyquator.es selgroup.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Dear Friends,
I am making one RSS News Reader Desktop application in c#. Where I will
show
the images from website. I am generating xml file on server. like
http://www.zeetelevision.com/myxml.xml

Problem is
PictureBox1.Ima ge =
Image.FromFile( "http://www.zeetelevisi on.com/images/today.jpg");

Its giving me error, URI path not supported..

How should I do this. What is the right way?

Regards
Sachin Korgaonkar

--
"A life spent making mistakes is not only more honorable but more
useful than a life spent doing nothing."
--George Bernard Shaw


Nov 16 '05 #3

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

Similar topics

9
1966
by: Wally | last post by:
I am trying to display images from an Access 2000 database and I get an error "Invalid Parameter Used" when I execute the code line "picBLOB.Image = Image.FromStream(stmBLOBData)" in my Visual Basic .Net application. I have researched MSDN for help and found the example article 321900 (see below) and set up a test and everything works fine when I use SQL Server 2000 but when I modify the code and use data from Access 2000 using an...
3
29940
by: Shailaja Kulkarni | last post by:
hi All, This problem is for C# windows application. I have a user control whcih contains one picture box along with other controls. Depending on certain conditions I want to change images on the picturebox. But at the same time I want to refer only assembly of the user control in other solution. If I am using method System.Drawing.Image.FromFile("filename") I have to put gif files containing those images in bin directory of solution in...
1
4021
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the same way a menu does. To do this my control needs to get notified when the user tried to click off of it. The Leave and LostFocus events of the UserControl work most of the time but not always. For example, if they click on a part of the form...
1
3635
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox in my Form. I load this image from the filesystem into the PictureBox and then I draw random little lines on the image. Then when I minimize and reopen the application the little lines are gone. Is there a way to save my lines in memory and...
5
5785
by: Sharon | last post by:
I’m writing a Windows application. In the form I have a Panel and inside the panel I have a PictureBox control. I’m loading the PictureBox control with BMP image that has the following criteria: 14174 x 7874 Pixels (111.61MPixels), 1 BitsPerPixel, 3200x3200 DPI, No Compression. The memory consumption for loading this image should be 13.31 MB (13,952,776 Bytes) (this is what IrfanView takes, http://www.irfanview.com/). I’m loading...
0
3879
by: akh | last post by:
I want to use de Drag and Drop ´s event to move a picture box from a form and within a Picture Box. But I have behaviour if the MyPBox As PictureBox as the Globale varible or not Thanks for your help, Here is the code.
5
11107
by: Christopher Kurtis Koeber | last post by:
Dear All, This may sound like an elementary question but how do you implement scrollbars for the Picturebox control. Do I have to create my own code to do this or is there some property that I can set? Thank you very much for your time and consideration in this matter! Christopher Koeber
8
1497
by: Christopher Kurtis Koeber | last post by:
Dear All, Recently I created a thread about trying to load a particular ICON image that GDI plus could not load. I realized that GDI plus definitely does not support it because it had a certain resolution that is not in any of its built in format libraries. So my question is this, how would I go about working with images that are not in GDI+ native libraries, such as raw camera files (*.RAW, etc.), Pixar's file format, and plenty of other...
0
1365
by: Jerry West | last post by:
Coming from VB6 a PictureBox was a container for other controls. This doesn't seem to be the case with .NET. In light of that can someone comment on the following.... I'm creating an app that loads a Form to maximum screen size. On the Form I have a PictureBox control that also maxs out to the screen's full resolution. I then randomly load images into the PictureBox. What I was hoping to do is have a Panel inside the PictureBox that...
0
8568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8504
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9043
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8753
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8771
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6429
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5789
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1921
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.