Quite strange the rigamarole one must go through to read a file as base 64