cheekily storing an investigation into how to read binary files for storing in db