ITMSMCPCustomCloudImageAI.ExtractImageResult Method
Extracts the generated image from a successful response.
API unit family: TMS.MCP.CloudImageAI
Declaring type: ITMSMCPCustomCloudImageAI
Syntax
function ExtractImageResult(const ARequestResult: TJSONValue): string;
Remarks
An empty result is what tells the caller to report the request as failed. An implementation whose service returns a download link instead of inline data fetches that link here, so this call can block for the duration of a download; it runs on the thread that handles the response, which is the main thread.
Parameters
| Name | Description |
|---|---|
ARequestResult |
Parsed response body to read the image from. |
Returns
The image as a base64-encoded string, or an empty string when the response carries no image.