I am trying to convert the local HTML file to bitmap image using C# Windows Form Application. For that I am reading the HTML file by using memory stream. But after passing the memory stream to Bitmap object it saying "Parameter is not valid".
Below is the sample code
MemoryStream stm = new MemoryStream(data); Bitmap f_Bitmap = (Bitmap)Image.FromStream(stm);
Please provide the solution for how can i covert the HTML file to bitmap image.
Thanks.