Re: [bdbxml] I want to store binary content in my DBXML
George Feinberg <[email protected]> Sun, 11 Sep 2005 22:21:38 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Mark, There are a few options: 1. As Steve suggested, use Berkeley DB for the binary content. You can even create another DB database in the same file as the container, and they will not interfere with one another. This answers the question you pose, below. You'd have to deal with backup/restore, but that's manageable. 2. Use base64 inside XML documents. 3. Use BDB XML metadata. It is possible to create binary metadata, and also create metadata-only documents. Regards, George On Sep 11, 2005, at 5:19 PM, Mark R. Diggory wrote: > Steve, I'm not seeing your posts go to the xml list... > > Steve Howe wrote: > >> I think that if the binary streams are small, you should store them >> in base64 inside the XML data, since it will be easier to manage; if >> they are larger, you'll have much better performance by storing >> them in >> BDB, which is optimized for that kind of storage. Just create a BDB >> database, create a sequence, and go storing the binary streams in >> BDB my >> using an id generated by the sequece, and n the XML data, use >> something >> like: >> <blob id="524354"/> >> to point out to that stream. Besides, it will free you from the >> overhead >> of converting to base64 (and from it), will require less storage >> space, >> etc. >> > > This I understand. If I could live with having two separate files, > one BDBXML db container for the xml and one BDB container for the > binary content then this would be fine. But my goal is to be able > to maintain it all in one container for both BDBXML and BDB content. > > I'll try to formulate an much more specific question: > > Can I use the BDB api on a BDBXML database and make modifications > to it. If I place non-BDBXML content into a BDBXML container, will > it break the BDBXML capabilities of that Container. > > Cheers, > Mark ------------------------------------------ To remove yourself from this list, send an email to [email protected]