Nhảy tới nội dung

Class: ImageReader

Reads the content of an image file into a Document object (which stores the image file as a Blob).

Implements

Constructors

new ImageReader()

new ImageReader(): ImageReader

Returns

ImageReader

Methods

loadData()

loadData(file): Promise <Document <Metadata>[]>

Public method for this reader. Required by BaseReader interface.

Parameters

file: string

Path/name of the file to be loaded.

Returns

Promise <Document <Metadata>[]>

Promise<Document[]> A Promise object, eventually yielding zero or one ImageDocument of the specified file.

Implementation of

FileReader . loadData

Source

packages/core/src/readers/ImageReader.ts:17