TTMSFNCWXBarcodeDecoder.DecodeFromBase64 Method
Decodes the barcode contained in a base64-encoded image.
API unit family: TMSFNCWXBarcodeDecoder
Declaring type: TTMSFNCWXBarcodeDecoder
Inherited from: TTMSFNCWXCustomBarcodeDecoder, TTMSFNCWXCustomBarcodeDecoderBase
Overloads
Overload 1
Decodes the barcode contained in a base64-encoded image.
procedure DecodeFromBase64(const ABase64: string; const ACallback: TTMSFNCWXCustomBarcodeDecodeCallBackEvent = nil); virtual;
Remarks
This is the central decode entry point that the file, image, and camera paths funnel into. Descendants override it to perform the actual decode.
Parameters
| Name | Description |
|---|---|
ABase64 |
Base64-encoded image data, optionally prefixed with a data: URI scheme. |
ACallback |
Optional callback invoked with the decode result; pass nil to rely on the OnDecoded event instead. |
Overload 2
Decodes a base64-encoded image using the configured symbology by invoking the client-side decoding library.
procedure DecodeFromBase64(const ABase64: string; const ACallback: TTMSFNCWXCustomBarcodeDecodeCallBackEvent = nil); override;
Remarks
The result is delivered asynchronously through OnDecoded and the supplied callback once the library reports back.
Parameters
| Name | Description |
|---|---|
ABase64 |
Base64-encoded image data. When no data: URI prefix is present a PNG image prefix is assumed. |
ACallback |
Optional callback invoked with the decode result; pass nil to rely on the OnDecoded event instead. |