com.HTTPPart.CreateFromData

Creates a new HTTPPart object based on given BYTE located in memory.

Syntax

CreateFromData(
   b BYTE)
  RETURNING part-object com.HTTPPart
  1. b is a BYTE object located in memory.

Usage

Creates a new HTTPPart object based on given BYTE located in memory. To be used via the addPart() method.

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