Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can i use webclient to access dcm images located on web server

MSIL
string filePath = "http://aspspider.info/Shweta2010/1.2.392.200036.9123.100.12.11.13569.20100729031426.1.1.dcm";
           //open the file, this could throw an exception
           //(e.g. if the file is not found)
           //having includeExceptionDetailInFaults="True" in config
           // would cause this exception to be returned to the client
           try
           {
                WebClient webclient = new WebClient();
                Stream imageFile = webclient.OpenRead(filePath);
               return imageFile;
           }

This code is giving error!! Is it coz .dcm is not supported by browser..
Posted
Comments
Sandeep Mewara 20-Nov-10 9:27am    
What error?
Dave Kreskowiak 22-Nov-10 10:20am    
And the error would be .....???

A hint: The single, most important piece of information to troublehsoot your problem!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900