From: Matt Armstrong Date: 2003-01-22T07:30:01+09:00 Subject: Re: Newbie Q: do i need PStore for this or something else ? Dmitri Colebatch writes: > Bruce Williams wrote: >> On Tuesday 21 January 2003 04:18 pm, Vandemoortele Simon wrote: > [snip] >> | _Detail:_ >> | The album consists of different *sections*, each containing a description >> | and *pages*. Every page contains the names of the pictures it shows, >> | descriptions for the pictures and the name of the layout template used. > [snip] >> I'd use a YAML::Store-- easy to use, plus structure and raw-form readability. >> Check out YAML4R: http://www.google.com/search?q=YAML4R > > 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? You could. I assume YAML would just store it as a "string" and encode it just like string.inspect would in ruby (or something close). But don't do that -- store the images as separate files in the file system and store the file names in your Ruby data structure.