Click here to Skip to main content
12,503,321 members (58,206 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# Windows SQL-Server
Hi all

Please tell me on a button click how to save the *.doc or *.docx file into database..
i have taken the datatype as varbinary(MAX)

thank you
Posted 6-Dec-12 19:30pm
choudhary.sumit 7-Dec-12 1:33am
why don't you save the path of the file in the database instead??
snehasish nandy 7-Dec-12 1:35am
i am not considering any fixed path..
choudhary.sumit 7-Dec-12 1:42am
then follow the solution given by mehdi gholam in solution1
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

snehasish nandy 7-Dec-12 1:35am
Is this can be done in windows application..??
Krunal Rohit 7-Dec-12 1:48am
Webservice can be consumed by any kinda client :)
If you're satisfied with the given answer, Accept the Solution :)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2016
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