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; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)