Closed belal-mazlom closed 3 years ago
Thanks for this, after a first quick review it seems OK to me. However, would you mind updating the docs to clarify the usage? Thanks
Thanks @claustres for quick response.
It's match with the current docs in README.md
blobService = BlobService(options)
options.Model
is an instantiated interface that implements the abstract-blob-store
APIoptions.id
is a string 'key' for the blob identifier.returnUri
defaults to true
and indicates if the service output a data URI on create/get operations returnBuffer
set it to true
if you only want a buffer output instead of a data URI on create/get operations Maybe I am wrong but at least this should be updated/removed doesn't it?
Tip: returnUri/returnBuffer are mutually exclusive. If you need both extract the buffer from the data URI on the client-side to avoid transferring the data twice over the wire.
@claustres I updated README.md
file, hope it's better now.
@claustres could you publish a new version of this package on npm ?
I would like to use this patch, but for the moment, I make my package.json point to the github repo.
Thanks
Released as v2.4
This makes
returnUri
option could have false value to have output to be withouturi
propertyIssue related:
75