Is it possible to store a document in a database column?

2
Hi I have a requirement to upload multiple documents, Normally documents are stored in hard drive in your project location somewhere, but I want to store the documents in database as an entity attribute. Is it possible ? If yes, then how can we achieve this. Thanks & Regards, Rajnish
asked
1 answers
3

While it's possible we don't recommend it. The current API only supports base types, which would mean that you would have to encode your binary file in base64 and then store it in a string. This means that the file becomes ~37% bigger.

The other problem with this approach is that you won't be able to use it as a native mendix filedocument, so you won't have a file upload or download button.

answered