IPI_LoadImage()
This subprocedure is used to load an image from either a character field or a STMF. The loaded image can then be used to perform other IPI operations such as IPI_ImageToPageSegment().
Images can be loaded from:
- A provided RPG field in the pImageData parameter.
- A STMF specified on the Stmf subfield of the IPI_LoadImageDS_t parameter
Many times an image may be Base64 encoded such as if it was received via a web service. IPI_LoadImage() can decode a Base64 encoded image and then proceed to load it if the Base64Encoded subfield of the IPI_LoadImageDS_t parameter is set to IPI_YES. If the image is not Base64 encoded, this subfield should be set to IPI_NO.
Once the image has been loaded, an IPI_ImageDS_t data structure will be returned. This is used to provide important information about the image to other IPI subprocedures.
Subprocedure Prototype
|
Returns *OFF if an error occurs during processing, *ON otherwise. |
|
Return parameter that contains the loaded image which can be used with other IPI subprocedures. |
|
Controls how the image data is loaded and can be used to provide an IFS STMF to load data from. |
|
May be used to pass image data |
|
Optional parameter that, if passed, will contain error data returned from the subprocedure. If it is not passed, exceptions will instead be "thrown" and must be caught by a MONITOR block. |
Data Structures
|
|
|
Indicates whether the image data being provided is Base64 encoded. Default Value: Valid Values:
|
|
Specifies a path to a STMF in the IFS where image data should be loaded from. |
|
Indicate which CCSID the image data is currently stored in. Default Value: |
|
Internal use only |
|
Internal use only |
|
|
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
Internal use only |
|
|
|
Name of the subprocedure that encountered an error. |
|
Message ID corresponding to the error that occurred. |
|
Error message text providing details about the error. |