title: Store million of images : File system or NoSQL?
body: <p>I have 3 Go of jpg images ( 150px * 150 px ,  &lt; 10k )</p>
  
  <p>I have divided my folder into subfolders to be able to see them in windows explorer...
  - when I zip or unzip, it takes more than 10 hours
  - when I load these pictures on amazon s3, it's the nightmare,...</p>
  
  <p>So I wonder ! what about a NoSQL database like for example PostgreSQL ? I would store all my picture in a JSON format { 'name' : 'image01.jpg', '12WFHSKFHDKSFFISNKSADNXKLSJ......KDJHHDJSHFGF' }</p>
  
  <p>This would be perfect to store all picture in 1 unique file (no need to zip or unzip) and very simple to manage </p>
  
  <p>I have seen that it was possible with mongodb (something like $gridFS->storeFile("FileName.jpg", array("_id" => $id)); )</p>
  
  <p>It seems that it's not possible to do that with Postgresql... I can find anything about storing image in postgres (JSON)</p>
  
  <p>Ok I'm lost,... Help :(</p>