Click here to Skip to main content
15,903,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello sir,
i am storing doc file which contains resume of candidate's in textarea box. i need to stored this further into database.i am doing but that's n't stored in the same format which's stored in .doc file.m using varchar(max) data type
Posted

If it's a textbox, then what you have is text, not a .doc file. So, I don't see the issue, except if you have unicode characters and need to use nvarchar.

What is the problem exactly ? Where do the doc file come from ? Do you create it ? Why can't you change the database format if you need to store a binary file ?
 
Share this answer
 
Hi
saving
**********
1.first convert the document content in to array of bytes.
2. saving array data in to database.

retrieving
***********
1. retrieve the data from the database.
2. convert it into array of bytes.
3. convert the data from array of bytes to filestream.
4. open the conten using appropriate application :)
 
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