Can we pull .zip file using webservice call into ensemble and unzip it

I need to pull .zip file and unzip it to access the zip files contained in the archive using the web service call. Can any one suggest is there any option for to get the zip files.

  • 00
  • 0
  • 720
  • 6

Replies

$ZF()

do $zf(-1,"pkzipc.exe -extr -over=all [and etc.]")

Instead of pkzip, you can use 7z, rar, gzip32 etc.

Hi, Vineeth!

See the sample of exporting and importing global to zip file on the fly from @Eduard Lebedyuk post:

set ^dbg=123
set s=##class(%Stream.FileBinaryGzip).%New()
do s.LinkToFile("1.xml")
do $System.OBJ.ExportToStream("dbg*.GBL", s)
do s.%Save()
kill
kill ^dbg
set s=##class(%Stream.FileBinaryGzip).%New()
do s.LinkToFile("1.xml")
do $System.OBJ.LoadStream(s)
write ^dbg
>123

Hope that helps.

Hi All,

I want to unzip the text files or any format (more than 50) from sFTP in windows server by using Intersystems IRIS. Can you please advise on this. 

Thanks,

Arun Kumar Durairaj.