How to use botocore.response.StreamingBody as stdin PIPE

后端 未结 1 1129
慢半拍i
慢半拍i 2021-02-13 20:33

I want to pipe large video files from AWS S3 into Popen\'s stdin, which is from Python\'s point of view a \'file-like object\'. This code runs as an AW

相关标签:
1条回答
  • 2021-02-13 20:51

    For reading binary data from StreamingBody use StreamBody.read(). You get a binary string.

    0 讨论(0)
提交回复
热议问题