Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 545.3k

Error-The given path format is not supported

Dec 27 2022 3:53 AM

Hi

   I am getting above error on below code

            MemoryStream ms = new MemoryStream(buffer);
            FileStream file = new FileStream(@"D:\" + pdf + ".pdf", FileMode.Create, FileAccess.Write);
            ms.WriteTo(file);
            file.Close();
            ms.Close();

Thanks


Answers (13)