search

Home  >  Q&A  >  body text

Convert file to data stream

Hello heroes, I want to convert the excel file into a data stream and then send it to the interface. .NET uses this class to implement FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);

What method is used to implement PHP? grateful.

聂顺顺聂顺顺794 days ago992

reply all(5)I'll reply

  • 大瓶可乐@php.cn

    大瓶可乐@php.cn2022-10-25 22:58:03

    https://www.php.cn/php-ask-477855.html This?

    reply
    0
  • 大瓶可乐@php.cn

    大瓶可乐@php.cn2022-10-25 22:55:54

    You mentioned uploading the excel file?

    reply
    0
  • 聂顺顺

    Upload the file to the interface, which only receives data from the data stream.

    聂顺顺 · 2022-10-26 09:11:36
  • 大瓶可乐@php.cn

    大瓶可乐@php.cn2022-10-25 10:33:41

    https://www.php.cn/toutiao-364080.html Try this article

    reply
    0
  • 聂顺顺

    Thanks, I looked it up and it doesn’t seem to be what I want.

    聂顺顺 · 2022-10-25 10:51:55
  • Cancelreply