Directus / @directus/sdk / rest / readAssetRaw
Function: readAssetRaw() ​
readAssetRaw<
Schema
>(key
,query
?):RestCommand
<ReadableStream
<Uint8Array
>,Schema
>
Read the contents of a file as a ReadableStream
Type Parameters ​
• Schema
Parameters ​
• key: DirectusFile
<Schema
>["id"
]
• query?: AssetsQuery
Returns ​
RestCommand
<ReadableStream
<Uint8Array
>, Schema
>