Detects MIME type of the buffered content
    :param string: buffered content whose type needs to be detected
    :return:

def from_buffer(string, config_path=None):
    '''
    Detects MIME type of the buffered content
    :param string: buffered content whose type needs to be detected
    :return:
    '''
    status, response = callServer('put', ServerEndpoint, '/detect/stream', string,
                                  {'Accept': 'text/plain'}, False, config_path=config_path)
    return response