0

I am working with python (backend) and angular (frontend).

I previously saved a PDF file in a folder present in my backend. I would like the client, via an api request to the backend, to receive that file (obviously knowing its name).

How can I pass a file from the backend to the frontend? Online I found only from frontend to backend, but not the other way around.

Philipp Meissner
  • 5,273
  • 5
  • 34
  • 59
  • Well, return the file's contents in response to an HTTP request, with the appropriate HTTP headers. Depending on what framework you're using on Python, there's probably a simple class wrapper for that. – deceze Dec 01 '22 at 09:38

0 Answers0