-
Hello! I am attempting to get a file from a S3 bucket and write the bytestream locally. I had this working a month or so ago but I guess something got updated in the time being. I am getting an error on line 4 "Value of type 'ByteStream' has no member 'toBytes'" I can't find anything in the documentation or anything that changed. If anyone has any insight I would really appreciate it. Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You are correct, the API did change with the introduction of HTTP bidirectional streaming in 0.16.0. The way to get the data from your S3 object:
I recognize that this is a little cumbersome when you just want to get the data and the file is too short to worry about streaming it from S3; I'll look at ways to make this a little more convenient in a future SDK release. |
Beta Was this translation helpful? Give feedback.
-
Issue to track this improvement: #1018 |
Beta Was this translation helpful? Give feedback.
You are correct, the API did change with the introduction of HTTP bidirectional streaming in 0.16.0.
The way to get the data from your S3 object:
I recognize that this is a little cumbersome when you just want to get the data and the file is too short to worry about streaming it from S3; I'll look at ways to make this a little more convenient in a future SDK release.