Download a file from the folder

You can download a file from the folder by referring to its unique File ID. The input stream of the file is obtained by calling the downloadFile() method.

Ensure the following packages are imported:

Copiedimport com.zc.component.files.ZCFile;
import com.zc.component.files.ZCFolder;
Copied//Get an instance for the file store
ZCFile fileStore = ZCFile.getInstance();
//Get Folder details using folder ID
ZCFolder folder = fileStore.getFolderInstance(1510000000109393L);
//Download the File as an Input Stream using the file id
InputStream is = folder.downloadFile(1510000000108418L);