AnsweredAssumed Answered

How should I proceed when I need to decode Base64 encoded file then unzip decoded file all in one process, before uploading it anywhere?

Question asked by stanislaw.paskowski280615 on Nov 22, 2017
Latest reply on Nov 22, 2017 by James Ahlborn

I've tried data process shape with decode and unzip but it fails probably because boomi can't unzip a file that doesn't have .zip extension, but I couldn't find a way to make decoded file a zip. I always end up with .dat file that i have to make .zip manually and that's really not what I want. I've tried custom scripting:


0.upto(dataContext.getDataCount()-1) {
dataContext.storeStream(new ZipInputStream(dataContext.getStream(it)), dataContext.getProperties(it))


but it just returns .dat file too.


I hope that there is some way.