-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.3
-
Component/s: GridFS
-
None
-
Environment:Windows 7 64 bit
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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++;
}