Added methods to retrieve file contents and encode/decode base64.