Hi @Ben Spead!
Thank you for warning me! :)
Fixed! I usually double check my English writings in text editors like Google Docs, but I missed to check the title...
A little explanation here, I'm Brazilian, so a Portuguese native speaker. But it's OK, Portuguese is a kind of brother of Spanish! =)
For those who are looking for unziping features, Embedded Python (for IRIS 2021.2+) allows you to use zipfile Python lib. For instance:
ClassMethod UnZip(pZipFileName As %String, pExtractToDir As %String) [ Language = python ]
#; solution based on this one: https://stackoverflow.com/a/3451150/345422
with zipfile.ZipFile(pZipFileName, 'r') as zip_ref:
ClassMethod UnZip2(pZipFileName As %String, pExtractToDir As %String)
Set zipfile = $SYSTEM.Python.Import("zipfile")
Do zipfile.ZipFile(pZipFileName, "r").extractall(pExtractToDir)
Tested on iris-ml-community:2021.2.0.617.0-zpm
Thanks for your code, but I tried it and can't get a file in the directory in the end. In order to get it working, I had to call the method %Save() before the %Close() one:
I found that by this article by @Gevorg Arutiunian: https://community.intersystems.com/post/save-file-using-nethttprequest
Log in or create a new account to continue