TTMSFNCWXQRDecoder.DecodeFromBase64 Method
Decodes a QR code from a base64-encoded image and reports the result through the supplied callback.
API unit family: TMSFNCWXQRDecoder
Declaring type: TTMSFNCWXQRDecoder
Inherited from: TTMSFNCWXCustomQRDecoder
Syntax
procedure DecodeFromBase64(const ABase64: string; const ACallback: TTMSFNCWXCustomBarcodeDecodeCallBackEvent = nil); override;
Remarks
Decoding is asynchronous; the result is delivered later through the callback or the decoded event rather than being returned by this call.
Parameters
| Name | Description |
|---|---|
ABase64 |
The image data as a base64 string. A bare base64 payload is accepted; when it does not already carry a data: URI prefix, a PNG data URI prefix is added automatically. |
ACallback |
Optional callback invoked with the decode outcome and the decoded text. When omitted, results are still reported through the decoded event. |