Member Junction
    Preparing search index...
    • Loads an MJ: Files row as contextUser and reads its bytes through FileStorageEngine.ResolveFileObject(..., 'Read') and Driver.GetObject.

      Throws when fileId is not a valid UUID, when the MJ: Files row is missing or denied, when no storage account resolves for the provider, or when storage access is refused.

      Parameters

      • fileId: string

        The MJ: Files record ID to read.

      • contextUser: UserInfo

        The caller whose entity and storage permissions govern the read.

      • Optionalprovider: IMetadataProvider

        Optional metadata provider override.

      Returns Promise<Buffer<ArrayBufferLike>>

      The file content as a Buffer.