OpenWGA 7.10 - TMLScript reference

ImageScaler
Method :

writeImage(file)
writeImage(outputStream)

On object ImageScaler
Usage Writes the image data to some output
Description This method renders the image in the configured output format and stores it either as file or writes it to some Java output stream.
Parameters file (Java class java.io.File):
Variant 1: Output file

outputStream (Subclass of Java class java.io.OutputStream):
Variant 2: Output stream
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent