TTMSMCPCloudAIImage.Stream Property
In-memory stream holding the encoded bytes of this reference image.
API unit family: TMS.MCP.CloudImageAI
Declaring type: TTMSMCPCloudAIImage
Type: TMemoryStream
Syntax
property Stream: TMemoryStream;
Remarks
Reading returns the stream owned by the item, not a copy. Write into it or clear it, but never free it - the item frees it in its destructor. Assigning a different stream replaces the reference without freeing the previous one, which leaks the original and transfers ownership of the assigned stream to the item; prefer LoadFromPicture or loading into the existing stream instead.