Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to send pdf file of word file through sockets using c#
Posted
Comments
CPallini 7-Apr-11 13:36pm    
Like any other file...

U can just read the bytes from the PDF-File from a FileStream and send it over the Sockets or over a Networkstream..

Then you can read from the other Socket or Networkstream and write it back in a file :)

1. Solution also is also a good answer..

--r4
 
Share this answer
 
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Apr-11 13:38pm    
A general Answer, but this is good. Who says PDF should be different from others? My 5.
There are other methods though. This one is practical enough.
--SA
Kim Togo 6-Apr-11 2:33am    
Thanks SA :-)
Although there is more in it, then just sending raw data on a socket. Exchange of example file name, size, attributes, creation date/time and integrity of the data transmitted.
Sergey Alexandrovich Kryukov 6-Apr-11 2:45am    
Sure, it mostly depends on the purpose.
--SA

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