dtm.loadDocument(new FileInputStream(file));
xmark.putDocument(new Transaction(), file.getName(), doc);
}
public void xtestPutDocumentBig() throws XQueryException, DbException, FileNotFoundException {
DbCollection xmarkCol = DbCollection.getCollection("/test/xmark");
DbCollection xmark = xmarkCol.createCollection("big_dtm");
assert (xmark.getDirectory().exists());
File file = new File(TEST_FILE);
IDocumentTable doc = new BigDocumentTable();
DocumentTableModel dtm = new DocumentTableModel(doc);
dtm.loadDocument(new FileInputStream(file));
xmark.putDocument(new Transaction(), file.getName(), doc);
}