I'm using jcouchdb, and Yes, I created a document.
I can store any document, but only text document is correctly opened.
Server server = new ServerImpl(COUCHDB_HOST, COUCHDB_PORT);
server.createDatabase("jcouchdb_test");
FooDocument fooDocument = new FooDocument("document image");
Reader fu = new Reader("pt.gif");
byte [] byteArray = fu.getBytes();
fooDocument.addAttachment("testiagem", new Attachment("image/gif",
byteArray));
Database db = createDatabaseForTest();
db.createDocument(fooDocument);
--
Rodrigo Mansho
USP - ICMC