Added facilities to base64 encode the file input if specified by the pom