PankaJ D

PankaJ D

  • NA
  • 154
  • 0

URI formats are not supported

Mar 4 2011 8:00 AM


I am trying to open pdf file using folowing code.

 if (extension == ".pdf")
            {

                 context.Response.AddHeader("Content-Type", "application/pdf");
  FileStream fs = new FileStream(path, FileMode.Open);
            }

but it throws an exception "URI formats are not supported"
I have checked path,path is correct & file also availabe.


Answers (8)