com.HTTPPart.getAttachment

Returns the temporary filename located on disk of the HTTP part.

Syntax

getAttachment()
  RETURNING filename STRING

Usage

Returns the temporary filename located on disk of the HTTP part.

To be used via methods: com.HTTPResponse.getPart, com.HTTPResponse.getPartCount, and com.HTTPResponse.getPartFromContentID

It is up to programmer to remove file from disk when not needed anymore.

The temporary file is located according to DBTEMP environment variable, as specified in the Genero Business Development Language User Guide.

If the file is saved on disk in base64, you can use the Genero Web Services fglpass -dec64 command to convert it back to binary.