def convert_file_content_to_binary_for_transport(self, file_obj): return utils.make_file_java_byte_array_compatible(file_obj)
def get_content_for_upload(): """ Generates a file like object with random data and returns it in a form ready to be passed over the wire via SOAP """ return utils.make_file_java_byte_array_compatible(open('manage.py', 'r'))