This deprecated node outputs JPG images created by visualization nodes in your data flow and saves them outside of the application.
To configure this node, specify the name of the input field that contains the image in the ImageField property, then either specify a filename and path in the Filename property or specify the name of an input field that contains this information in the FilenameField property.
Example
You have the following data in a Create Data node as input to a Bar node showing sports activities undertaken by 10 students:
NumberOfStudents:int, sport:string3,karate2,fencing2,swimming3,tennis
Connect the Chart output pin of the Bar node to the Output Image node and set the properties as follows:
In this case, there is only one field in the input data so you do not need to configure the ImageField property, the image data is automatically taken from the input field.
In the Filename property, enter the location where you want to output the image, for example: C:\Users\<username>\Documents\<Bar chart title>
The image is saved to the specified location.
Properties
ImageField
Specify the name of the input field that contains the image. The only case where you do not need to specify an input field is when the input data contains only one field. In this case, you must still specify a Filename or FilenameField property.
Filename
Specify a filename and exact path to determine where to output the image to. Note that if you do not specify the exact path, the file will be saved relative to your server's temporary directory.
In the case where there are multiple images, the images will be output to the following location, where <FileDirectory> is the directory, <FileName> is the name of the file, <recordNumber> is the input record number (1-indexed) on which the image is located and <extension> is the file extension specified in the Filename property, or if no file extension is specified, it is the extension of the input image:
<FileDirectory>/<FileName>_<recordNumber>_<extension>
If you use this property, do not also use the FilenameField property.
FilenameField
Specify the name of an input field that contains the path to where you want to output the image. If an extension is provided, that extension will be used; otherwise, the extension of the input image is used. This filename path must be fully qualified, or the file will be saved relative to your server's temporary directory.
Each record in the filename field is checked individually for the presence of a file extension. The filename is required, and the file extension is optional. It is permitted that some records may include the file extension while others do not.
If you use this property, do not also use the Filename property.
RecordNumber
Optionally specify the record number (1-indexed) which contains the image that you want to output.
If not set, all images in the input field specified in the ImageField property will be output.
InvalidImageTypeBehavior
Optionally specify what to do if the image is not a JPG image type or if there is NULL data in the specified field. Note: This property does not handle badly formatted image content data. Choose from:
- Ignore
- Error
- Log
The default value is Ignore.
LogConfig
The optional LogConfig property is rarely given a value. By default, the JavaNode creates a parsable XML log in the following directory: ({{^logTempDir^}} /user/data flow/run_name/. Its logging threshold is set by the LogLevel property.
Customization of JavaNode logging is achieved by specifying an XML text value for the LogConfig property. You can create multiple logs, each of which filters log events by LogLevel and/or ErrorCode or some other user-defined logic supplied as a Java class. A log can also subscribe to events generated by another log.
Inputs and outputs
Inputs: in1.
Outputs: None.