Skip to content

Option to create a writable stream for the blob #22

@baybal

Description

@baybal

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
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions