def get_binary(self):
content_disp = '<STR_LIT>'<EOL>stream = io.BytesIO()<EOL>stream.write(_string_to_binary('<STR_LIT>'.format(self.boundary)))<EOL>stream.write(_crlf())<EOL>stream.write(_string_to_binary(content_disp.format(self.file_name)))<EOL>stream.write(_crlf())<EOL>stream.write(_crlf())<EOL>stream.write(self.body)<EOL>stream.write(_crlf())<EOL>stream.write(_string_to_binary('<STR_LIT>'.format(self.boundary)))<EOL>stream.write(_crlf())<EOL>return stream.getvalue()<EOL>
Return a binary buffer containing the file content