From: Ezra Zygmuntowicz Date: 2008-09-06T06:00:04+09:00 Subject: Re: How to save Ruby object as a blob in MySQL On Sep 5, 2008, at 1:53 PM, Bryan Richardson wrote: > Ah... interesting. Thanks! I assume I have to Base64.decode the data > before using Marshal to load it back into an object... correct? Yeah exactly, use helper methods like this: def marshal(string) [Marshal.dump(string)].pack('m*') end def unmarshal(str) Marshal.load(str.unpack("m")[0]) end Cheers- -Ezra