Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CURL.GetResultAsGIF

Returns the result of the transaction as GIF image.

Component Version macOS Windows Linux Server iOS SDK
CURL 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.GetResultAsGIF"; curl { ; Filename } )   More

Parameters

Parameter Description Example Flags
curl The CURL session handle. $curl
Filename The desired file name. test.gif Optional

Result

The result value which you can assign to a container field.

Description

Returns the result of the transaction as GIF image.
Make sure the data is a GIF. The plugin does not verify whether result is a GIF file. But if it is one, it sets size properties so FileMaker can preview it.
Version 5.2 and later can use the filename from URL if you don't provide one yourself.

See also CURL.GetResultAsContainer.

Examples

Load GIF image from URL:

# start new transfer
Set Variable [$curl; Value:MBS("CURL.New")]
# set URL
Set Variable [$r; Value:MBS("CURL.SetOptionURL"; $curl; "https://monkeybreadsoftware.com/filemaker/images/dynapdf.gif")]
# run transfer
Set Variable [$ErrorCode; Value:MBS("CURL.Perform"; $curl)]
# get result as GIF and store in field:
Set Variable [$Result; Value:MBS( "CURL.GetResultAsGIF"; $curl)]
Set Field [test::MyContainerField; $Result]
# get debug messages:
Set Variable [$DebugMessages; Value:MBS( "CURL.GetDebugMessages"; $curl)]
# cleanup
Set Variable [$r; Value:MBS("CURL.Release"; $curl)]

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 19th April 2020


CURL.GetResultAsEmail - CURL.GetResultAsJPEG

💬 Ask a question or report a problem