com.HttpPart.getContentAsData

Returns the HTTP part as a BYTE.

Syntax

getContentAsData(
   b BYTE )
  1. b defines a variable holding the BYTE data.

Usage

Returns the HTTP part as a BYTE. BYTE data cannot be returned from a function with a RETURN statement. Therefore, the b parameter must be handled by reference.

To be used via methods: com.HttpResponse.getPart, com.HttpResponse.getPartCount, and com.HttpResponse.getPartFromID

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).

The error -15573 is raised if the part cannot be converted to a Genero BYTE.