Skip to content
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

Option to create a writable stream for the blob #22

Open
baybal opened this issue Nov 9, 2020 · 1 comment
Open

Option to create a writable stream for the blob #22

baybal opened this issue Nov 9, 2020 · 1 comment

Comments

@baybal
Copy link

baybal commented Nov 9, 2020

Is your feature request related to a problem? Please describe.
I need an option to create a writable stream for the blob

Describe the solution you'd like
Instead off

await Drive.disk('azure').putStream('unicorn.jpg', stream)

I want to be able to do

const unicornStream = await Drive.disk('azure').getWriteableStream('unicorn.jpg')

someStream1.pipe(unicornStream)
someStream2.pipe(unicornStream)
someStream3.pipe(unicornStream)

Or even

const unicornReadStream = await Drive.disk('azure').getStream('unicorn.txt')
const unicornWriteStream = await Drive.disk('azure').getWriteableStream('unicorn.txt.xz.aes')

await pipeline(
  unicornReadStream,
  xz.createXZ(),
  crypto.createCipheriv(algorithm, key, iv),
  unicornWriteStream
);
@AlexanderYW
Copy link
Owner

AlexanderYW commented Nov 9, 2020

Hi @baybal, thanks for your feature idea, seems like a good case that needs support, if you like your more than welcome to implement it if you need it now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants