Hi,牛哥们好,
http://www.sequoiadb.com/cn/index/Public/Home/document/api/java/html/index.html
这个网址的JAVA API打不开了,
顺便问下,有没有存储大附件的例子,且指定objectId,现在那个ObjectId不晓得是啥参数,我想把这个大附件与一条结构化数据建立ID的关联起来,谢谢,是通过传参数ObjectId么?如果是的话,ObjectId这个对象如何构建,那个(ObjectId) bsonObj.get("_id")能直接造型么?谢谢,代码如下:
BSONObject tempBSONObject=cl.queryOne();
if(tempBSONObject!=null){
String dataId=tempBSONObject.get("_id").toString();
DBLob tempLob=cl.createLob((ObjectId) bsonObj.get("_id"));
File tempFile=new File("/data/data1/aaa");
byte[] fileBytes=getBytes("/data/data1/aaa.txt");
tempLob.write(fileBytes);