Re: NSArchiver and MySQL

2008-03-03 Thread Mike Abdullah
On 3 Mar 2008, at 21:55, Ben Einstein wrote: Never really read about BLOBs. They seem like they'll do the trick just fine! Thanks. On Mar 3, 2008, at 2:04 PM, Jim Correia wrote: On Mar 3, 2008, at 1:21 PM, Mike Abdullah wrote: Relying on -description would almost certainly be a bad idea

Re: NSArchiver and MySQL

2008-03-03 Thread Ben Einstein
Never really read about BLOBs. They seem like they'll do the trick just fine! Thanks. On Mar 3, 2008, at 2:04 PM, Jim Correia wrote: On Mar 3, 2008, at 1:21 PM, Mike Abdullah wrote: Relying on -description would almost certainly be a bad idea as it might change in the future. Also, it wil

Re: NSArchiver and MySQL

2008-03-03 Thread Jim Correia
On Mar 3, 2008, at 1:21 PM, Mike Abdullah wrote: Relying on -description would almost certainly be a bad idea as it might change in the future. Also, it will take up a lot of room. I'd recommend: http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/ Why convert to a string rep

Re: NSArchiver and MySQL

2008-03-03 Thread Mike Abdullah
Relying on -description would almost certainly be a bad idea as it might change in the future. Also, it will take up a lot of room. I'd recommend: http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/ Mike. On 3 Mar 2008, at 18:08, Ben Einstein wrote: What's the best way to arc

NSArchiver and MySQL

2008-03-03 Thread Ben Einstein
What's the best way to archive/unarchive an NSData object created from NSArchiver to a MySQL (or any other) database? I was thinking: [archivedData description] for archiving and [archivedString dataUsingEncoding:someEncoding] for unarchiving. Not sure if that will work. Maybe [NSString st