login about faq


I have a file that must be zipped (deflate with header and able to be unzipped with other tools or manually) base64 encoded and integrated as a node's content in XML. I doubt SetBinaryContentFromFile would be the right option. Could anybody give me a tip where and how to start? Do I need to start with 'Chilkat_9_5_0.Zip and AppendOneFileOrDir to create zip file and then SetBinaryContentFromFile to import it in XML as base64 or there is more elegant way?

Thanks a lot

asked Jan 07 '15 at 07:30

qqq's gravatar image


That should actually be the one you want. It has a Zip option that should Zip Archive it. You can test that by adding your file, inspect the element, copy out the base64 text, decode it, the first 2 bytes should be PK if it is a zip file.

If it is not, then use the ChilkatZip component, and then use SetBinaryContentFromFile or SetBinaryContent if you have it as a byte array, it will base64 it for you.


answered Jan 07 '15 at 14:49

ColdFireDragon's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 07 '15 at 07:30

Seen: 2,912 times

Last updated: Jan 07 '15 at 14:49

powered by OSQA