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:

    
copy
import com.zc.component.files.ZCFile; import com.zc.component.files.ZCFolder;
    
copy
//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);

Last Updated 2023-09-03 01:06:41 +0530 +0530