-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Buffer and Stream support for S3 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
1 similar comment
+1 |
This is a known omission at this point. We will definitely be adding proper support for working with binary data. |
Absolutely appreciated... I know supporting a Buffer should be simple enough, and wrapping a stream interface could be a bit more of a pain. |
+1 |
Ok cool. so it has nothing to do with my code then... I naively assumed I could download files with their s3 library. But there's some weird utf-conversion issue. |
+1 |
I hacked in buffer support in my fork, only because I really needed it, but the code may not be very DRY: However, it works... at least I can now download files from S3 and write to disk without having a weird utf-8 conversion screwing up all the bytes. I could do a pull request, but maybe the library authors prefer the body-as-buffer to be set via a method parameter option instead? Actually, shouldn't the body always be a buffer until we know we need to convert it to a string? I feel like that whole method could just be done a lot better... |
@trevorrowe Thank you. Looking forward for this feature. |
Would you be updating the package manager with the latest changes? Thanks in advance. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Would be nice to be able to pass a buffer, or stream in addition to a base-64 encoded string. Since these are the typical interfaces for dealing with binary data in Node.js
The text was updated successfully, but these errors were encountered: