4

I'm pulling a spreadsheet from an FTP directory and I need to read it with PHPSpreadsheet. I can read a local file just fine, but not sure how to do it when I'm getting a stream of data.

Is this even possible? I'm not finding much in documentation support for it.

Not including code since I don't believe it is needed for the question.

Much thanks!

Envin
  • 1,463
  • 8
  • 32
  • 69
  • Save it locally (on the server or your machine) then process it. If necessary use the PHP functions to generate a temporary file name in the temp directory then unlink the file when you're done with it. – Dave Jul 05 '19 at 19:33
  • Strangely enough this question doesn't seem to interrest much people. I am facing the same situation and cannot find any resource detailing the possibility to load from a stream / raw data. So far I haven't found a better way than save data to a temporary file and then load it using `IOFactory::createReader()->load()`. Any comment on this would be much appreciated. – Cédric Françoys Oct 19 '21 at 13:38

0 Answers0