Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  


Returns the result of the transaction as GIF image.

Component: CURL
Version: 3.1
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "CURL.GetResultAsGIF"; Handle { ; Filename } )


Parameter Description Example value
Handle The CURL session handle. $curl
Filename Optional
The desired file name.


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


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.


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; "")]
# 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.GetDebugAsText"; $curl)]
# cleanup
Set Variable [$r; Value:MBS("CURL.Cleanup"; $curl)]

See also

CURL.GetResultAsEmail   -   CURL.GetResultAsJPEG

Feedback: Report problem or ask question.

MBS Real Studio Chart Plugins - Pfarrgemeinde St. Arnulf Nickenich