Added helper methods to convert file to Base64String and vice versa