Archived Forum Post

Index of archived forum posts

Question:

ckData alternative

Aug 25 '15 at 20:03

Hi Chlkat,

You said in a previous post Chilkat 9.5 Missing CkData CkDataArray that you might be able to suggest an alternative to ckData if I told you what I used it for. I am at the point now were I need that alternative. My company just migrated the development server to a 64bit 2012 from a 32bit 2003. The latest version of 9.5 64bit works great and global search replace for the class name is easier then expected.

The sticking point is ckData. The 64bit version of 2.6 registers okay and will test with a vb script test file. It is ASP pages that choke "Server Can Not Create Object".

Here is what I use it for in ASP. I have a class that fetches files for users. The file structure setup in that there is no direct URI to the files. The files are on NAS or in the "cloud" with RackSpace CloudFiles (think AWS). ckData is the glue of this class because it is versatile. I check a database for the file id and then know to load the files from the NAS (ckData.LoadFile()) or make a http call to CloudFiles (ckData.LoadBinary HttpResponse.Body). Once If have the data, I can either push it to the browser (response.BinaryWrite ckData.GetBinary) or to my PDF component to merge more pages or add a stamp (mypdf.read ckData.GetBinary).

I also have a vb program that uses ckdata as the glue between ftp and http. The program downloads files from a ftp site (ckData.LoadBinary Ftp2.GetRemoteFileBinaryData(file_name)) and then sends the data to CloudFiles (HttpRequest.LoadBodyFromBytes ckData.GetBase64).

All in All ckData is a very useful library for holding and manipulating binary and base64 data. I am surprised that I am the only only who seems to be missing this utility. Since it is mostly pdf data, I have tried using the pdf object, it has .read and .data for base64 but it heavy and sometimes leaks memory.


Answer

Just now, I added the BinData class to fulfill the need. Here's a new ActiveX build:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-x64.zip

This class is only part of the ActiveX API. Here's the online reference documentation:

http://www.chilkatsoft.com/refdoc/xChilkatBinDataRef.html

Please let me know if you have any trouble. :)

-Matt


Answer

(Erik, thanks -- I really appreciate the purchase today.) I'll add these features today if possible.


Answer

Here are the new builds:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-x64.zip

The online refdocs have been updated.. (http://www.chilkatsoft.com/refdoc/xChilkatBinDataRef.html)

-Matt