stevegray
4Penny.net
Points: 56959

12/30/2025 9:39:55 AM

Save Excel to a SQL image field

* This article, and all our great Telerik ASP.NET documentation, Is available on the Telerik ASP.NET menu

Today's task was to take an Excel file and save it to a SQL Image field.

All the approaches that I saw while researching did an ODBC type query and sent the DATA to SQL. This approach takes the actual Excel file and saves it. 

Specifically, we are using a Telerik ASP.NET RadAsyncUpload control to grab a file from the user... but the approach can be modified for almost any use. 

Code below. 

 

4Penny.net
Version: All
Section: Telerik
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