com.HttpPart.CreateFromData

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

Syntax

CreateFromData(
   b BYTE )
  RETURNS com.HttpPart
  1. b defines 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: binary

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).