title: Best way to store documents ( pdf , word ...) in a database ( postgres 9.4)
body: <p><strong>Problem :</strong></p>
  
  <ul>
  <li>To save documents such a pdf file or word...</li>
  </ul>
  
  <p><strong>Approach :</strong></p>
  
  <ul>
  <li>but it seems to me not a good idea to store it directly in the database.</li>
  <li>I prefer to store only the address of the file in a column and to save the file itself on a folder beside my database.</li>
  </ul>
  
  <p><strong>Todo :</strong></p>
  
  <ul>
  <li>Is there a trick to create a folder beside the database (mdf ldf) and to store the relativly to the mdf I mean (.. /document) for example?</li>
  </ul>