com.HTTPPart.CreateAttachment

Creates a new HTTPPart object based on given filename located on disk.

Syntax

CreateAttachment(
   filename STRING)
  RETURNING part-object com.HTTPPart
  1. filename is the name of a file.

Usage

Creates a new HTTPPart object based on given filename located on disk. To be used via the addPart() method.

Defaults HTTP headers:
  • Content-Type: application/octet-stream
  • Content-Transfer-Encoding: binary