Replies: 1 comment
-
if these are not in memory created probably standard library sendfile can help this needs to be adjusted to Echo interface w.Header().Set("Content-Disposition", `attachment; filename="report.pdf"`)
http.ServeFile(w, r, "./files/report.pdf") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
AFAIK, there are three ways to serve PDFs:
However, I am not familiar with how to implement PDF streaming using Echo. Any hints on how I could achieve this?
Beta Was this translation helpful? Give feedback.
All reactions