im tasked to create a virtual database that clients can create from our web application and have them save data to.
the problem now is to have it stored for later re-use.
im thinking of dynamically creating a DataTable object in c# then convert it to byte[]. now i want to know if this would be practical to save on a database…
is this possible?
You can use
WriteXmlto write to a stream:And write the
byte[]to avarbinary(max)/image/ etc column in a database if that is what you need (you mentioned database) – or just use xml.If you are writing to a file, then just use a
FileStreamin place of aMemoryStream.