How to store text files in a data base

Sunday, 13 November 2022 · 1 message
HR
Hans-Juergen Rennau13 Nov 2022 15:46 #

Hello,

I wonder what is the recommended way how to store text files in a database.

What occurs to me is the use of db:put-value / db:get-value: Storage: db:put-value($db, $filePath ! file:read-text(.), $dbPath) Retrieval: db:get-value($db, $dbPath)

Would you recommend a different approach, e.g. storing and retrieving as a binary?

With kind regards, Hans-Jürgen


⚡Generated with XQuery