I'm not sure we need to return a char* as opposed to a QByteArray but we can't call .c_str that way as the referenced memory is local.