title: Storing File Sizes in a Database
body: <p>I am currently working on a system that involves storing multiple studies and details of their contents (A study can typically contain 1 &lt; X &lt; ~2000 images). My colleagues and I were discussing what might be the best method of storing files sizes (specifically the image sizes) in a database would be. </p>
  
  <p>The file sizes typically range from &lt; 1kB to > 20MB.</p>
  
  <p>We are currently debating between storing the images sizes as:</p>
  
  <pre><code># of kilobytes (as an integer value) 
  # of bytes (as a large integer value)
  # of megabytes (possibly as a decimal value)
  Other Options...
  </code></pre>
  
  <p>I haven't worked with storing file sizes much and was wondering what might be the most efficient / practical method of accomplishing this? </p>