ImageWriteBase64()
Writes Base64 images to the specified filename and destination.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageWriteBase64( image=any, destination=string, format=string, inHTMLFormat=boolean );
Returns: String
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
destination
string,
required
|
edit
The path for the destination file. |
|
format
string,
required
|
edit
the image format |
|
inHTMLFormat
boolean,
optional
|
edit
Specify whether Base64 output includes the headers used by the Base64 images in the HTML "img" tag ("data:image/{format};base64,...") :
|
Examples
edit imgObj = imageNew("",200,200,"rgb","red");
imgObj.writeBase64('base64.txt','jpg','true');
See also
- Image manipulation
- ImageReadBase64()
- ToBase64()
- image.writeBase64()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)