Click here to Skip to main content
Rate this: bad
good
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
Comments
choudhary.sumit at 7-Dec-12 1:33am
   
why don't you save the path of the file in the database instead??
snehasish nandy at 7-Dec-12 1:35am
   
i am not considering any fixed path..
choudhary.sumit at 7-Dec-12 1:42am
   
then follow the solution given by mehdi gholam in solution1
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

Solution 2

  Permalink  
Comments
snehasish nandy at 7-Dec-12 1:35am
   
Is this can be done in windows application..??
Krunal Rohit at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 7 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