Salesforce

ClientFile2Blb (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

ClientFile2Blb (Magic xpa 4.x)

Moves a file into a BLOB variable.

Syntax:

ClientFile2Blb (file name)

Parameters:

File name (Alpha) The name of the file to be converted into a BLOB.

Returns:

BLOB The file packed as a BLOB.

Examples:

ClientFile2Blb('C:\myfile.txt') returns a BLOB with the content of the c:\myfile.txt file.

Note:

  • This is a client-side function that is only available for Rich Client tasks. To use the server-side version of this function in Rich Client tasks, see File2Blb.

  • If the file needs to be sent to the server, it is recommended to send it using the ClientFileToServer function.

Exceptions:

This function is not supported in Web Client tasks.

Platform specific:

  • On iOS devices, only access to the temp folder is allowed. You can either use a relative path or use ClientOSEnvGet('temp') to get the folder.

  • On Android devices, the file system is case sensitive. The names of Magic xpa related files, such as images and local databases are automatically saved in lower case (even if the file is defined with upper case letters). This function will not convert the file name to lower case. Therefore, if you need to refer to the destination file from Magic xpa, you should use a lower case name in the function.

See also:

The Rich Client Samples project (program RCV03b)

Reference
Attachment 
Attachment