Create/load/import from raw data instead of file #4262
Unanswered
kokoshneta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In most libraries that handle specific file formats (e.g., PHP League’s CSV library), you can instantiate the reader or writer object by providing either a file name (which will then be opened and data extracted) or raw data.
I’m trying to figure out a way to do the latter here, and I can’t find anything anywhere. All the class methods I can find expect file paths only.
If you fetch an Excel file via an HTTP request, you will receive the raw data in the response body. Is it really necessary to save this raw data to a file on the server in order to import it into Laravel Excel to process? Something like this:
Beta Was this translation helpful? Give feedback.
All reactions