From: Bryan Richardson Date: 2008-09-06T05:53:52+09:00 Subject: Re: How to save Ruby object as a blob in MySQL Ah... interesting. Thanks! I assume I have to Base64.decode the data before using Marshal to load it back into an object... correct? On Fri, Sep 5, 2008 at 12:55 PM, Ezra Zygmuntowicz wrote: > > > > > On Sep 4, 2008, at 3:01 PM, Bryan Richardson wrote: > >> Thanks Michael... you are correct on both accounts. I actually made a >> mistake in my syntax that made me think it wasn't reading back in >> correctly. >> >> -- >> Thanks! >> Bryan > > > In general when you want to store Marshal'd data in mysql you should > Base64.encode the data after you Marshal.dump it so that you do not get > those weird chars and mysql is better able to handle the data. > > -Ezra > >