BethanyW
4Penny.net
Points: 7600

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.

4Penny.net
Version: All
Section: .NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3