Try marshelling the Zip file as ByteArray and demarshall it into original format where you need to store the file.
Sorry, I wasn't too specific
I am trying to attach a file to a message on this forum.
you could use external 3rd party service, e.g.:
(do not use some 3rd party services used for sharing, they are bloated with ads, ok?)
I don't think people would be in hurry to see binary file content though (but Adobe does not support it on forums I think). So if possible use 3rd party services to paste relevant parts of your code:
You probably looking for that answer btw (it applies to regular posts as well):