Sign Up Now!Log In
BethanyW 4/15/2016 10:00:21 AM

Insert an image into a SQL table from SQL

* This article, and all our great SQL (General) documentation, Is available on the SQL (General) menu

I so love my job. Every day is something new.

Today I'm trying to display an image in a grid, and the control requires that the image be stored in SQL. It's a pain to write a .NET app do to that, so I researched to see if it's possible to do from SQL.

Below is a short piece of code that creates a SQL table and inserts an image from disk into it.

Version: All
Section: .NET Development