Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
3.0.3
-
None
-
Windows 7 64 bit
Description
GridFS is failing to write the file. After creating a GridFS class and storing few files to mongodb. I am trying to read it back.
DBCursor cursor = fs.getFileList();
int count=0;
while(cursor.hasNext()){
GridFSDBFile object = (GridFSDBFile)cursor.next();
final InputStream is = object.getInputStream();
System.out.println("is to "+is.toString());
try
catch (IOException e)
{ // TODO Auto-generated catch block e.printStackTrace(); } count++;
}