473,666 Members | 2,075 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 12983
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
29935
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
4019
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
3633
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
5781
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
3878
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
11104
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
1495
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
1364
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
8871
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...
0
8783
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8640
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
6198
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
5666
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
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2773
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 we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.