i have HTML page source of website saved as String in string PageSource;
i need to save it in SQL Database as Image of type image.
How to convert PageSource in byte[] and save it as Image in database.
This is a hard problem if you are trying to parse the HTML and turn it into an image. Most of the browsers do it, so you could look into using the renderer parts of Webkit or Firefox.
imagedatatype not creating pictures. You should usevarbinary(max)asimageis deprecated.