0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Generate → QR Code Decode

AI-generated

Overview

This node provides a utility to decode QR codes from images. It supports decoding QR codes either from an image URL or from a Base64-encoded image buffer. This functionality is useful in scenarios where you need to extract encoded information from QR codes dynamically within your workflow, such as scanning product codes, URLs, or other data embedded in QR codes.

Practical examples include:

  • Automatically reading QR codes from images hosted online to retrieve embedded URLs or text.
  • Decoding QR codes received as Base64 buffers from other nodes or external sources without needing to save the image first.

Properties

Name Meaning
Image Source Choose whether the QR code image is provided as a "URL" or a Base64 "Buffer".
Image URL The URL pointing to the QR code image (required if Image Source is "URL").
Image Buffer The QR code image as a Base64-encoded string (required if Image Source is "Buffer").

Output

The node outputs JSON data containing the decoded content of the QR code. The exact structure depends on the response from the decoding service but typically includes the decoded text or data extracted from the QR code image.

If the node supports binary data output (not explicitly shown here), it would represent the raw image or related binary content; however, for this operation, the focus is on decoding and returning textual or structured data from the QR code.

Dependencies

  • Requires an API key credential for authentication with the external QR code decoding service.
  • The node sends a POST request to the endpoint /generate/qrcode/decode with either the image URL or Base64 buffer in the request body.
  • The base URL for the API is https://prod.0codekit.com.

Troubleshooting

  • Invalid Image URL or Buffer: If the provided image URL is inaccessible or the Base64 buffer is malformed, the node may fail to decode the QR code. Ensure the URL is publicly accessible and the buffer is correctly encoded.
  • Empty or No QR Code Found: If the image does not contain a valid QR code, the output might be empty or indicate no data found. Verify the image contains a clear QR code.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Confirm that the API key credential is properly configured.
  • Network Issues: Connectivity problems to the external API endpoint can cause timeouts or errors. Check network access and retry.

Links and References

Discussion