0

I want to save a document(a person's information) in mongodb, with a pdf File uploaded and added in it(CV) which means each document is related with a file. There is GridFS, i found that files are stored in two specific collections: files and chunk.

Is there any method to save document with reference file in it, or a way to map relationships between documents and stored files ?

Thank you.

METTAIBI
  • 3,201
  • 5
  • 22
  • 29

1 Answers1

0

i resolved this problem: i uploaded a MultipartFile, transfered it to a directory and then linked its objectId to a document, please check my answer in this link

Could not Upload File using MongoDb GridFs

Community
  • 1
  • 1
METTAIBI
  • 3,201
  • 5
  • 22
  • 29