Lucee object methods reference

Object Method Image.writeBase64

Writes Base64 images to the specified filename and destination.
Image.writeBase64(string destination,string format,[boolean inHTMLFormat]):string

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
destination string  Yes The path for the destination file.
format string  Yes the image format
inHTMLFormat boolean  No Specify whether Base64 output includes the headers used by the Base64 images in the HTML "img" tag ("data:image/{format};base64,...") :
  • true
  • false (default)