Hello!
Help is needed.
I am checking C++ QT license. I read the license in buffer.
I need to transfer data from buffer (or array) to m_string stream.
Code:
intrusive_ptr license = new License();
QFile file(":/aspose_license/Aspose.Total.C++.lic");
if( file.open(QIODevice::ReadOnly) )
{
auto data = file.readAll();
const unsigned char* begin = reinterpret_cast<unsigned char*>( data.data() );
const unsigned char* end = begin + data.length();
std::vector buffer( begin, end );
System::ArrayPtr<uint8_t> array( new System::Array<uint8_t>( buffer ) );
intrusive_ptr<Aspose::Cells::Systems::IO::Stream> m_string; // write from buffe
license->SetLicense( m_string );