As i can see java mongo driver does not provide capability to get OutputStream
from existing gridFS file com.mongodb.gridfs.GridFSFile
I have to create GridFSInputFile
directly or use gridFs.createFile()
method.
Is it a lack of java driver or a restriction of gridfs ?
Could you suggest any workaround except create new file/delete old one ?
Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…