@utilities.arguments_not_none<EOL><INDENT>def set_data(self, data):<DEDENT>
if data is None:<EOL><INDENT>raise errors.NullArgument('<STR_LIT>')<EOL><DEDENT>if not isinstance(data, DataInputStream):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>dbase = JSONClientValidated('<STR_LIT>',<EOL>runtime=self._runtime).raw()<EOL>filesys = gridfs.GridFS(dbase)<EOL>self._my_map['<STR_LIT:data>'] = filesys.put(data._my_data)<EOL>data._my_data.seek(<NUM_LIT:0>)<EOL>self._my_map['<STR_LIT>'] = base64.b64encode(data._my_data.read())<EOL>
Sets the content data.

        arg:    data (osid.transport.DataInputStream): the content data
        raise:  InvalidArgument - ``data`` is invalid
        raise:  NoAccess - ``Metadata.isReadOnly()`` is ``true``
        raise:  NullArgument - ``data`` is ``null``
        *compliance: mandatory -- This method must be implemented.*