Click here to Skip to main content
15,905,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I've already stored a word document in my database in byte format. Now the problem is I'm not getting that document back properly from the database.
Please reply with suggestions.

Thanks in advance!
Posted
Updated 9-Feb-11 1:12am
v2
Comments
Prerak Patel 9-Feb-11 6:58am    
Show us the code that you used.
Manas Bhardwaj 9-Feb-11 7:00am    
what is NOT proper?
Manfred Rudolf Bihy 9-Feb-11 7:14am    
I asked myself the very same thing.

1 solution

In .NET you can do it..

MIDL
byte yourdata[400]=<your bytes="">;
string s = Encoding.ASCII.GetString(yourData);


Here in that string 's' you can find your data...
 
Share this answer
 
v2
Comments
Sweetynewb 12-Feb-11 5:47am    
but when getting back i want to show that document on asp.net page
I am getting text file but not word document

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