Skip to content
Snippets Groups Projects
Unverified Commit efb1c56b authored by Thuc Pham's avatar Thuc Pham Committed by GitHub
Browse files

fix: return buffer when loading image data (#749)

parent 28649938
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ export class ImageReader implements FileReader {
file: string,
fs: GenericFileSystem = defaultFS,
): Promise<Document[]> {
const dataBuffer = await fs.readFile(file);
const dataBuffer = await fs.readRawFile(file);
const blob = new Blob([dataBuffer]);
return [new ImageDocument({ image: blob, id_: file })];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment