Andrew Powell

Into The Mind of A Solutions Architect

Andrew Powell

Announcing Serializer CFC

March 12, 2008 · 1 Comment

I recently had a situation where I needed functionality to serialize and de-serialize a ColdFusion complex variable. Recalling that CF8 now lets us serialize CFCs using java.io.ObjectOutputStream, I figured it would probably let me serialize other CF data types as well (Array, Struct, etc). It did. Serialization was only the first part of the process, next I needed a way to de-serialize the data back into ColdFusion data types. The process is fairly straightforward, and is, essentially, a reverse of the serialization process. I've decided to release the Serializer.cfc on my google code site. You can find the download link below, or you can access it via SVN. Find The Code Here

Tags: Java · ColdFusion · General · Google · Adobe · Universal Mind

1 response so far ↓

  • 1 Don Q // Aug 2, 2008 at 2:53 AM

    Hey, I notice your CFC serializes a bit different from other methods I've seen, but still seems to choke when deserialization takes place if there's an array involved. Have you found and workaround/fixes?<br /><br />Thank you

Leave a Comment