coding for sending file content as base64--compiles but not tested