How to Upload Image to DB in SQL
Follow the steps below to upload Image to SQL in your Asp.Net website 1) Create a Table in you DB. CREATE TABLE [dbo].[CustomerDetails] ( [ID] INT IDENTITY (1, 1) NOT NULL, [CustomerName] NVARCHAR (MAX) NULL, [ Address ] NVARCHAR (MAX) NULL, [Latitude] FLOAT (53) NULL, [Longitude] FLOAT (53) NULL, [Image] IMAGE NULL, CONSTRAINT [PK_CustomerDetails] PRIMARY KEY CLUSTERED ([ID] ASC) ); 2) Create a new application. Add a FileUpload Control A Button. 3) In your Button click event paste the code below. try ...