Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.9k

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)