Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
What's the best way to retrieve a cad file from db?:confused:
I know, I just can store the binary format in sql database.
Is there any component to do this?

Thanks
Posted
Updated 30-Dec-10 1:20am
v2
Comments
Espen Harlinn 1-Jan-11 13:40pm    
JF2015 gave you a pointer to a comprehensive answer, and I gave you a small recipe on how to achieve your goal. While we didn't do your work for you - we did make an effort to help you. A vote of less than 3 should be used to indicate that the answers are wrong

 
Share this answer
 
SqlDataReader.GetSqlBytes(colOffset) retrieves an SqlBytes object.

SqlBytes.Stream gets the data of this SqlBytes as a stream

Open the target file and write the contents of the stream

Regards
Espen Harlinn
 
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