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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

Container.ReadArchive

Reads an archived container.

Component Version macOS Windows Linux Server iOS SDK
Container 4.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.ReadArchive"; Path )   More

Parameters

Parameter Description Example
Path Native path to the archive file to use. "C:\Benutzer\Christian\Desktop\test.txt"

Result

Returns OK or error.

Description

Reads an archived container.
Please use Container.WriteArchive to create the archive. The zip file must have a special format to be read successful, so probably only archives created by Container.WriteArchive will work.
This works for any content of a container, except for referenced container files.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.

Examples

Reads an archive:

MBS("Container.ReadArchive"; "C:\Benutzer\Christian\Desktop\test.txt")

Writes an archive:

MBS("Container.WriteArchive"; MyTable::MyContainer; "C:\Benutzer\Christian\Desktop\test.txt")

See also

Example Databases

This function checks for a license.

Created 21st September 2014, last changed 21st September 2014


Container.IsCompressed - Container.ReadFile

💬 Ask a question or report a problem