You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Zip a file

Received Response
20
Views
2
Comments
edited Jun 13, 2018 8:58AM in Integrations and APIs 2 comments

Content

Hi All,

I am trying to fetch the data using QueryCSV and write the data to a file  .The file we got needs to be zipped.

We are trying the above requirement in File Manager script.

We have tried zipping using ZipArchive() function but it seems Oracle RightNow doesnot support the function.

Do we have any other function to zip a file in File Manger.

Any help would be Appreciated.

Thanks and Regards,

Bibek Kumar Jena

Version

v1.3

Code Snippet

             $zip = new ZipArchive();            // Load zip library 
									$zip_name = "FileExtract_$sToday.zip";          // Zip name
									if($zip->open($zip_name, ZIPARCHIVE::CREATE)==TRUE)
									{   // Opening zip file to load files               
										$zip->addFile($sFileName); // Adding files into zip
									}
									$zip->close(); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!