TTMSFNCWXQRDecoder.DecodeFromBase64WithFilename Method
Decodes a QR code from a base64-encoded image while associating the result with a file name, so callers can correlate the outcome with the source image.
API unit family: TMSFNCWXQRDecoder
Declaring type: TTMSFNCWXQRDecoder
Inherited from: TTMSFNCWXCustomQRDecoder
Syntax
procedure DecodeFromBase64WithFilename(const ABase64: string; const AFilename: string; const ACallback: TTMSFNCWXCustomQRFilenameDecodeCallBackEvent = nil);
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. When it does not already carry a data: URI prefix, a PNG data URI prefix is added automatically. |
AFilename |
The file name to associate with this decode operation; it is passed back to the callback when the result is available. |
ACallback |
Optional callback invoked with the decode outcome, the decoded text, and the supplied file name. When omitted, results are still reported through the decoded event. |