Question Leonardo Weihermann · Apr 19, 2020

Zip File from % Stream.GlobalBinary objects

Hello!

I need to create a .zip file with several files from% Stream.GlobalBinary objects. Can someone help me?

Comments

Dmitry Maslennikov · Apr 19, 2020

There two open-source projects

  • isc-tar - it's my library that works the same as tar tool in Linux, and with native support of gzip in InterSystems products you can easily compress files as tar.gz and decompress them. This project used in production as part of Package Manager project.
  • isc_zip - should work with zip files
0
Alexey Maslov · Apr 20, 2020

Another possible approach:

  • copy global stream to file
  • process it using external OS call; in Linux we use its native zip/unzip utilities, in Windows - console version of popular free 7-zip tool. 
0