【问题标题】:PhpSpreadsheet load Excel file from memory rather than a file?PhpSpreadsheet 从内存而不是文件加载 Excel 文件?
【发布时间】:2018-10-31 12:59:38
【问题描述】:

我正在从 Azure 存储 Blob 下载 Excel 文件,因此想使用 stream_get_contents 来获取文件。但是 PhpSpreadsheet 似乎只想从文件系统中读取文件。

目前,我将其保存到临时文件夹并重新读取,但这并不理想。

有没有办法让 PhpSpreadsheet 通过本地文件以外的其他方式加载?

【问题讨论】:

    标签: phpspreadsheet


    【解决方案1】:

    不支持。 PhpSpreadsheet 将始终从磁盘读取

    附带说明,从 1.13.0 开始,PhpSpreasheet 能够在内存中写入。见https://github.com/PHPOffice/PhpSpreadsheet/pull/1292

    【讨论】:

      猜你喜欢
      • 2020-03-17
      • 2018-12-02
      • 2018-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-04
      • 2019-07-02
      • 2020-06-05
      相关资源
      最近更新 更多