Hi Farhan,
Thanks for your response.
Below is the code snippet i use.
// For complete examples and data files, please go to https://github.com/aspose-html/Aspose.HTML-for-.NET
// The path to the documents directory
string dataDir = RunExamples.GetDataDir_Data();
// Source HTML document
HTMLDocument htmlDocument = new HTMLDocument(dataDir + "input.html");
// Initialize ImageSaveOptions
ImageSaveOptions options = new ImageSaveOptions(ImageFormat.Png);
// Output file path
string outputFile = dataDir + "HTMLtoPNG_Output.png";
// Convert HTML to PNG
Converter.ConvertHTML(htmlDocument, options, outputFile);
The above code snippet create the png image in the local file system, but i dont want my application to create any image file locally introducing IO operations and instead return the base64 format of the image directely from memory.
Let me know if this is something possible using ASPOSE.HTML.
Cheers!
Pratheesh