Click here to Skip to main content
15,887,421 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Question Pin
Vasudevan Deepak Kumar29-Apr-08 0:26
Vasudevan Deepak Kumar29-Apr-08 0:26 
GeneralRe: Question Pin
Vasudevan Deepak Kumar29-Apr-08 0:25
Vasudevan Deepak Kumar29-Apr-08 0:25 
QuestionProblem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya28-Apr-08 20:02
professionalKiran Beladiya28-Apr-08 20:02 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Christian Graus28-Apr-08 20:25
protectorChristian Graus28-Apr-08 20:25 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya28-Apr-08 23:55
professionalKiran Beladiya28-Apr-08 23:55 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Christian Graus29-Apr-08 1:36
protectorChristian Graus29-Apr-08 1:36 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya29-Apr-08 1:55
professionalKiran Beladiya29-Apr-08 1:55 
AnswerRe: Problem using webclient : (illegal characters in Path) error Pin
snip11-Jun-09 23:37
snip11-Jun-09 23:37 
Hi,

it appears Bitmap img1 = new Bitmap("yourfilename") performs some build-in checks to see if the URL is valid or not. A 'rough' workaround would be to first download the image data using a HttpWebRequest, and get a stream to the data and use that to construct the Bitmap (I know, its stupid, but at least it works).

If you don't feel like writing lots of plumbing code yourself, you could consider using NFileStorage for the required overhead lined of code (created myself, see http://nfilestorage.codeplex.com/[^] to temporarily store the information, like so:

string filestorageName = @"c:\temp\googlechart";
FileStorageFacade.Create(filestorageName, CreateFileStorageBehaviour.IgnoreWhenExists);
string complexUrl = ... (your complex Google Chart URL);
FileStorageFacade.StoreHttpRequest(filestorageName, "A".ToNFileStorageDataIdentifier(), complexUrl, null, AddFileBehaviour.OverrideWhenAlreadyExists, "");
Bitmap img1 = new Bitmap(FileStorageFacade.GetStreamData(filestorageName, "A".ToNFileStorageDataIdentifier()));

Good luck!
Gert-Jan

bla

GeneralAbout the writer Pin
Tristania Dementium28-Apr-08 19:59
Tristania Dementium28-Apr-08 19:59 
GeneralRe: About the writer Pin
Christian Graus28-Apr-08 20:32
protectorChristian Graus28-Apr-08 20:32 
GeneralRe: About the writer Pin
flash66529-Apr-08 16:11
flash66529-Apr-08 16:11 
Generalproblem with formview update Pin
lovedotnet28-Apr-08 19:15
lovedotnet28-Apr-08 19:15 
GeneralRe: problem with formview update Pin
Christian Graus28-Apr-08 19:36
protectorChristian Graus28-Apr-08 19:36 
GeneralRe: problem with formview update Pin
lovedotnet29-Apr-08 18:25
lovedotnet29-Apr-08 18:25 
GeneralRe: problem with formview update Pin
Christian Graus29-Apr-08 19:21
protectorChristian Graus29-Apr-08 19:21 
Questionwhat is the name of this cms Pin
subai28-Apr-08 18:17
subai28-Apr-08 18:17 
AnswerRe: what is the name of this cms Pin
Christian Graus28-Apr-08 19:33
protectorChristian Graus28-Apr-08 19:33 
GeneralRe: what is the name of this cms Pin
subai28-Apr-08 20:01
subai28-Apr-08 20:01 
GeneralRe: what is the name of this cms Pin
Christian Graus28-Apr-08 20:24
protectorChristian Graus28-Apr-08 20:24 
GeneralRe: what is the name of this cms Pin
subai28-Apr-08 20:42
subai28-Apr-08 20:42 
Generalmultiline textbox not working in firefox Pin
keroed_edmond28-Apr-08 17:46
keroed_edmond28-Apr-08 17:46 
GeneralApostasy mark is not showing correctly in asp.net web page Pin
Meax28-Apr-08 17:00
Meax28-Apr-08 17:00 
GeneralRe: Apostasy mark is not showing correctly in asp.net web page Pin
Christian Graus28-Apr-08 18:15
protectorChristian Graus28-Apr-08 18:15 
GeneralRe: Apostasy mark is not showing correctly in asp.net web page Pin
Meax28-Apr-08 18:18
Meax28-Apr-08 18:18 
GeneralAbout Binding Pin
jason_mf28-Apr-08 15:48
jason_mf28-Apr-08 15:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.