Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to save Documents in sqlserver db by using asp.net with c#.
How can I do this?
Each user can save multiple documents and user has 2mb size maximum to save doc. Before saving it should check the size of whatever he has.
How can I manage this?
Posted
Updated 25-Dec-10 23:07pm
v2
Comments
JF2015 26-Dec-10 5:07am    
Edited to improve spelling and grammar.

See here[^].
 
Share this answer
 
Before saving the file into database, Get the size of each file and sum of all. If the size gets more than 2MB then show an error message.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900