This attachment file can be a email from Outlook, a jpeg…?
Hi Thanh,
For storing binary files, please check out MongoDB GridFS.
See also When To Use GridFS and Blog: Building MongoDB Applications with Binary Files Using GridFS: part 1
Regards,
Wan.