Load a file as byte array? #11886
Unanswered
laurentsenta
asked this question in
Help
Replies: 1 comment 2 replies
-
If this is an API endpoint, it'd be best to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, thanks for maintaining this framework, it's a pleasure to use!
I'm lost on file loading:
I'm trying to write an API endpoint that loads a pdf file as binary data, process it, and sends it to the user.
I would like to load my template data as a byte buffer, something like:
I had an error,
I tried to add
file-loader
to mynext.config.js
:but it looks like all I get is a name / URL,
is there a recommended way to load data in the API?
Beta Was this translation helpful? Give feedback.
All reactions