You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: