Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
Please! send me the information regarding that how to store the image,photo,.doc,.pdf and Video file can store in Microsoft SQL Server database also try to send the detailed information with sample code and example particularly.
Posted 6-Dec-12 1:07am
Escortx420
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can use Image/CLOB datatypes to store your image files.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

here i have Given Code u can use it according to your need basically we only need to use Fileupload Control and we can Upload Any type of file.
 
But if we uploading Video then Size will be Big then it will through an exception and to get rid of this add one line-
<system.web>
 <httpruntime executiontimeout="600" maxrequestlength="150000" />
</system.web>
 
and for Saving Your File in Database Refer this Link-
 
video Upload and view in asp.net c#[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100