mise API - v0.0.0
    Preparing search index...

    Function pacsFile_getBlob

    • Downloads a PACS file (DICOM) by file ID and returns the raw binary content.

      PACS files must be downloaded using the PACSFile API instead of regular file download endpoints. This function handles binary data correctly, preserving DICOM file integrity.

      Parameters

      • fileId: number

        The numeric ID of the PACS file in ChRIS.

      Returns Promise<Result<Buffer<ArrayBufferLike>>>

      A Result containing the file content as a Buffer, or an error.

      const result = await pacsFile_getBlob(12345);
      if (result.ok) {
      const buffer: Buffer = result.value;
      // Process DICOM data
      }