Class: ImageReader
Reads the content of an image file into a Document object (which stores the image file as a Blob).
Extends
Constructors
new ImageReader()
new ImageReader():
ImageReader
Returns
Inherited from
Methods
loadData()
loadData(
filePath
):Promise
<ImageDocument
<Metadata
>[]>
Parameters
• filePath: string
Returns
Promise
<ImageDocument
<Metadata
>[]>
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:188
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<ImageDocument
<Metadata
>[]>
Public method for this reader. Required by BaseReader interface.