Syntax
| Decode64_File(Data, FilePath)
| ||||||
|---|---|---|---|---|---|---|---|
Description
| Decode a base64-encoded string and write the resulting binary data directly to a file. Returns 1 on success, 0 on failure. This function writes the decoded binary content directly to disk without intermediate string conversion, making it significantly faster than using Decode64 followed by a file write operation. This is particularly beneficial for large binary payloads such as uploaded images, PDFs and other documents. Internally, the function uses the Chilkat BinData component for high-performance native decoding. If the base64 data is invalid or the file cannot be written (e.g. the target directory does not exist or the file is locked), 0 is returned.
| ||||||
See Also
| |||||||
Example
| Sub Main |