ments.x7fe00010.basicOffsetTable.length
        ) {
          // Basic Offset Table is not empty
          return dicomParser.readEncapsulatedImageFrame(
            dataSet,
            dataSet.elements.x7fe00010,
            frameIndex
          );
        }

        // Empty basic offset table

        if (framesAreFragmented(dataSet)) {
          const basicOffsetTable = dicomParser.createJPEGBasicOffsetTable(
            dataSet,
            dataSet.elements.x7fe00010
          );

          return dic