License with stream argument

Hello,

I want to put my license in my DataBase and use the methode SetLicense with stream parameter.

I try to use it with MemoryStream, I put in my memoryStream the value of the database and pass the memoryStream to the methode SetLicense(memorystream)

But the methode SetLicense send me an error.

Could you help me

Thank's by advance

Hi,

Thank you for considering Aspose.

I have checked with Aspose.Pdf version 3.5.0.0 and I am unable to reproduce the error. I used this chunk of code:

FileStream myStream = new FileStream("Aspose.Custom.lic", FileMode.Open);
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(myStream);
myStream.Close();

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html