Matterway
    Preparing search index...

    Class SDKFile

    Represents a file that has been loaded into memory from a base64-encoded data string.

    Use MwFile instead.

    Index

    Properties

    data: string

    The base64-encoded data for the file.

    name: string

    Name of the file.

    webkitRelativePath: string

    Relative path to the file.

    lastModified: number

    Last modified time, in ms from epoch.

    size: number

    Size in bytes.

    type: string

    MIME type.

    processedFile?: any

    Optional processed file for example OCR data or excel Workbook

    Methods

    • Reads the data stream to completion, and returns it as ArrayBuffer.

      Returns Promise<ArrayBuffer>

    • Reads the data stream to completion, and returns it as string.

      Returns Promise<string>

    • Returns a new File with only data in the given range of bytes.

      Parameters

      • Optionalstart: number

        The start index of the byte range.

      • Optionalend: number

        The end index of the byte range.

      • Optionaltype: string

        The type of the sliced file. Default is an empty string.

      Returns SdkFile

      A new File object with the sliced data.