As per my requirement i tried your code from the below link -
http://www.aspsnippets.com/Articles/Convert-Export-HTML-DIV-or-Table-to-Image-using-HTML-Canvas-in-ASPNet-using-C-and-VBNet.aspx
But I dont want the image created to be downloaded but saved on the server directly.
Would you like to help me in this asap.
Hi,
Please refer below code.
C#
string base64 = Request.Form[hfImageData.UniqueID].Split(',')[1]; byte[] bytes = Convert.FromBase64String(base64); File.WriteAllytes("path",bytes);
I hope this will help you out.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.