R
fn

encodeBinary

tested

Returns a QR Code representing the given binary data at the given error correction level. This function always encodes using the binary segment mode, not any text mode. The maximum number of bytes allowed is 2953.

Signature

ts
export function encodeBinary(data: readonly number[], ecl: QrCodeEcc): QrCode{ ... }

Parameters

ParameterTypeDescription
datareadonly number[]
eclQrCodeEcc

Returns

QrCode