unstorage icon indicating copy to clipboard operation
unstorage copied to clipboard

support raw methods for azure-storage-blob

Open blowsie opened this issue 1 year ago • 2 comments

Environment

Any / All

Reproduction

https://github.com/unjs/unstorage/blob/main/src/drivers/azure-storage-blob.ts#L96

Describe the bug

Calling .toString() here is problematic, as the getItem function can longer be used with buffers.

My suggestion would be to allow a type to be passed to the getItem() fn, or remove the toString() call and allow developers to call that manually, when they choose.

Additional context

No response

Logs

No response

blowsie avatar May 08 '24 16:05 blowsie

Hi. We have getItemRaw that can be implemented and return the buffer/raw value. PR welcome to add that.

pi0 avatar May 08 '24 16:05 pi0

Will do thanks!

refs #https://github.com/unjs/unstorage/issues/142

blowsie avatar May 08 '24 16:05 blowsie