From: Jeff Yemin <jeff.ye...@10gen.com>
Date: Thu, 6 Sep 2012 04:12:58 -0700 (PDT)
Local: Thurs, Sep 6 2012 7:12 am
Subject: Re: [mongodb-user] Need to close OutputStream when write file in GridFSDBFile.java(java driver, version 2.7.2)
This was fixed in the 2.8.0 release: https://github.com/mongodb/mongo-java-driver/blob/6ae5baa424c3e515b85... Jeff On Wednesday, September 5, 2012 10:25:18 PM UTC-4, Scott Hernandez wrote:
> You can use the writeTo(OutputStream stream) method if you want > http://api.mongodb.org/java/2.8.0/com/mongodb/gridfs/GridFSDBFile.htm...) > The garbage collector will clean it up, but it is better to do it > On Wed, Sep 5, 2012 at 9:58 PM, gen liu <toml...@gmail.com <javascript:>> > > public long writeTo( File f ) throws IOException { > > /** > > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||