I have to store large amount of HTML data in a database .
I have Googled and found something about the blob datatype, I checked it and it is working correctly.
I need to store the HTML pages in the tables and need to show them correctly as web pages on demand.
So, which is better for storing large HTML pages, text or blob?
I’d use
blobit’s a varbinary and does not do any translation. So your html will come out exactly the same way that it went in.If you want to search and index that html
TEXTmay be a better choice.In that case make sure you use the proper charset.
I’d recommend UTF8.