def get_data(self):
<EOL>url = self._payload.get_url()<EOL>file_handle = codecs.open(url, '<STR_LIT:r>', encoding='<STR_LIT:utf-8>')<EOL>try:<EOL><INDENT>file_handle.read()<EOL><DEDENT>except UnicodeDecodeError:<EOL><INDENT>file_handle.close()<EOL>file_handle = open(url, '<STR_LIT:rb>')<EOL><DEDENT>file_handle.seek(<NUM_LIT:0>)<EOL>return file_handle<EOL>
Gets the asset content data.

        return: (osid.transport.DataInputStream) - the length of the
                content data
        raise:  OperationFailed - unable to complete request
        *compliance: mandatory -- This method must be implemented.*

        # gets you a file-like object...not sure if it will behave
        exactly as expected...