-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hi there, in Client/src/providers/storageProvider, should the readBinary function request an arraybuffer as the response? I think the axios default is a json, and this causes problems when reading a pdf for example.
public async readBinary(filename: string, ignoreNotFound?: boolean): Promise<Buffer | undefined> {
try {
const api = `${serverUrl}/files/${filename}`;
const result = await getWithAutoRetry(api, {
responseType:"arraybuffer" //Added this
}
);
return result.data;
} catch (exception) {
this.storageErrorHandler(exception, ignoreNotFound);
}
}
Metadata
Metadata
Assignees
Labels
No labels