Table of Contents

TTMSFNCUtils.DownloadImage Method

Downloads image data from a URL into a memory stream.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function DownloadImage(AURL: string): TMemoryStream;

Parameters

Name Description
AURL Image URL to download.

Returns

Memory stream containing the downloaded image data, or an empty stream when the response is not an image. The caller is responsible for freeing it.