Our use of cookies

We use cookies to tailor your experience, gather analytics, and provide you with live assitance. By clicking "Accept" or continuing to browse our site you agree to the use of cookies. For more details please read our Cookie Policy.

Save documents and images exported by SQList as files

SQList stores documents an images as VARBINARY(MAX) data in the SQL tables.

To use these data to, for example, serve the document via a web page or store it as as file, here is how to do it using C#.


This is the data in the SQL table (it's a jpeg):



This is the C# code that reads the binary data and save it as a file, as well as renders it as a web  image:





The image stored as a file:






This is the image in a browser: