Table of Contents

TTMSFNCWXCustomBarcodeDecoderBase.DecodeFromFile Method

Reads an image from disk and decodes the barcode it contains.

API unit family: TMSFNCWXBarcodeDecoder Declaring type: TTMSFNCWXCustomBarcodeDecoderBase

Syntax

procedure DecodeFromFile(const AFileName: string; const ACallback: TTMSFNCWXCustomBarcodeDecodeCallBackEvent = nil);

Remarks

The file is converted to a base64 data stream and forwarded to DecodeFromBase64.

Parameters

Name Description
AFileName Full path to the image file to decode. The call is ignored when the path is empty or the file does not exist.
ACallback Optional callback invoked with the decode result; pass nil to rely on the OnDecoded event instead.