Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do i upload files in a windows application. I want to be able to point to text files like .doc, .pdf etc and upload them to my database. how do i go about doing that in a windows application.
Posted

Take a look at the File and FileStream classes to read the files. What you do with them depends on how you are going to save them.

If you just want to copy them as BLOB's or similar, just do a stream binary read. If you need to extract information, then you'll need to parse them or do whatever it takes to extract the info from the files.
 
Share this answer
 
Check this[^] thread out.
See here[^] as well.
 
Share this answer
 
Comments
[no name] 16-Oct-10 10:07am    
you thread helped. now can you teach me how to retrieve and display the text file on a windows form

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