Free Support Forum - aspose.cloud

Missing Namespaces for Sign- ProcessCommand and CopyStream?

Refer below code, I am unable to trace the namespaces for highlighted classes. I am using aspose.cloud as a namespace for below code

string appSID = “******************”;
string appKey = “******************”;
string fileName = “MyFile.docx”;

//build URI to convert MS Word file to other format using storage
string strURI = “http://api.aspose.com/v1.1/words/” + fileName + “?format=pdf”;

//Use the following line to use API version 1.1
//string strURI = “http://api.aspose.com/v1.1/words/” + fileName + “?format=pdf”;

//sign URI
string signedURI = Sign(strURI, appSID, appKey);

//get response stream
Stream responseStream = ProcessCommand(signedURI, “GET”);
using (Stream fileStream = System.IO.File.OpenWrite(“c:\temp\MyFile.pdf”))
{
CopyStream(responseStream, fileStream);
}
responseStream.Close();

Hi Raju,


Thanks for your inquiry. Please see attached Utils.cs. You can use Aspose.Cloud.Common namespace. I hope, this helps.

Best regards,