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: 10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2    Statistic    FMM    Blog  

CURL.SetInputJPEG

Sets input to JPEG data from the container value.

Component Version macOS Windows Linux Server iOS SDK License
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes Free
MBS( "CURL.SetInputJPEG"; curl; data { ; Offset; Length } )   More

Parameters

Parameter Description Example Flags
curl The CURL session handle. $curl
data The container value with the data to upload.
Offset The offset where to start within container. 0 Optional
Length Size of data to take from the container.
Length of container data must be ≥ Length + Offset.
1024*1024*10 Optional

Result

Returns "OK" on success.

Description

Sets input to JPEG data from the container value.
Also sets input file length. You need to define input data for file uploads, http posts and http put operations.

Examples

Upload a JPEG file to a FTP Server:

Set Variable [$curl; Value:MBS("CURL.New")]
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; "ftp://test.test/test/hello.jpg")]
Set Variable [$result; Value:MBS("CURL.SetOptionUpload"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password)]
Set Variable [$result; Value:MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name)]
Set Variable [$result; Value:MBS("CURL.SetInputJPEG"; $curl; CURL Test::MyImage)]
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
Set Field [CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl)]
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 3th December 2021


CURL.SetInputGIF - CURL.SetInputPDF

Feedback: Report problem or ask question.


Start Chat