Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

CURL.GetResultAsData

Returns the result of the transaction as data file.

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

Parameters

Parameter Description Example Flags
curl The CURL session handle. $curl
Type The type the new data should have for FileMaker.
See container functions.
Typically "PDF " for pdf files, "FILE" for normal binary files and special codes for pictures like "JPEG".
"FILE"
Filename The desired file name test.zip Optional

Result

A container value or empty on error.

Description

Returns the result of the transaction as data file.
Make sure the data is in the format you tell FileMaker. FileMaker uses internally 4 letter codes to know what data is stored in containers and you need to pass a suitable type code.
You may often be better by using CURL.GetResultAsContainer function.

Please note that types are always 4 characters long, "PDF " has a space on the end.
Version 5.2 and later can use the filename from URL if you don't provide one yourself.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 9th May 2023


CURL.GetResultAsContainer - CURL.GetResultAsEMailList

💬 Ask a question or report a problem