Simplified AssetService to use Stream instead of FileStream for file uploading since only the Stream base type is used further.
AssetService uses FileUploader for file uploading.
FileUploader expects Stream as first input parameter type when AssetService expects FileStream as first input parameter type.
AssetService doesn't use any features of the FileStream and can be simplified to use Stream as an first input parameter type.
This change should be useful in case of using Bynder SDK in clouds for serverless applications when there are limits on available disk space (for FileStream it's necessary to have file on the disk).
coverage: 53.518%. remained the same
when pulling 84f7091346567e6b4b291f6e334243a9ca8655e1 on VGrigoriev1991:asset-service-upload-file-stream
into 0324ec69f6a6e414cde84414b61a5e17c06d3efe on Bynder:master.
Simplified
AssetService
to useStream
instead ofFileStream
for file uploading since only theStream
base type is used further.AssetService
usesFileUploader
for file uploading.FileUploader
expectsStream
as first input parameter type whenAssetService
expectsFileStream
as first input parameter type.AssetService
doesn't use any features of theFileStream
and can be simplified to useStream
as an first input parameter type.This change should be useful in case of using Bynder SDK in clouds for serverless applications when there are limits on available disk space (for
FileStream
it's necessary to have file on the disk).