From: why the lucky stiff Date: 2003-01-22T09:33:03+09:00 Subject: Re: Newbie Q: do i need PStore for this or something else ? On Tuesday 21 January 2003 03:24 pm, Dmitri Colebatch wrote: > > http://yaml4r.sourceforge.net/ says: > > Man 1: What's Yaml? > Man 2: It's for writing data structures in plain text. > > haven't read far, but does this store binary data (photos) in base64 or > something? Yep. Here's an example of an image stored in a Hash: base64: !binary | R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5 OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+ +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs= description: > The binary value above is a tiny arrow encoded as a gif image. The `!binary' typing instructs the YAML loader to load the base64 data as a binary string. If I were you, I'd use the YAML document to store metadata and keep your images in a directory where filenames are recognizable based on the metadata. Good luck. _why