removed base64-stream, simplified code, added tests - large files still do not work