Forums - C# Corner

Forum guidelines
Mandar Shinde

Mandar Shinde

  • 1.6k
  • 220
  • 2.7k

Regarding Open pdf Using Angular 5.

May 16 2019 1:36 AM
Dear All,
I was developing one component using Angular 5 and Asp .Net MVC 5 with REST Api.
I was facing one problem is that when I trying to open one pdf file using ASP .Net then it works fine on my local machine but when I try to open same pdf from uploaded from server then I am getting some error.
To overcome from above problem what I am doing is that I am converting that pdf file to bytes and returning that bytes as string from ASP .Net MVC to Angular 5.
I am not getting what should I do to generate that bytes to pdf and to open that pdf instantly.
Any suggestion will be acceptable.
Thanking you in advance.

Answers (3)