Sending file
-
Hi, I would like to be able to send a file (.doc) throught internet with a client/server App. I will probably use MFC & CSocket to code the App. Microsoft documentation tell us that we can send ordinary data (int, double, CString , serializable class etc..) using serialization into CSocket. But what if I want to send a file unstead of data. Is there a way to achieve this? thanks a lot Mykel Everything's beautiful if you look at it long enough...
-
Hi, I would like to be able to send a file (.doc) throught internet with a client/server App. I will probably use MFC & CSocket to code the App. Microsoft documentation tell us that we can send ordinary data (int, double, CString , serializable class etc..) using serialization into CSocket. But what if I want to send a file unstead of data. Is there a way to achieve this? thanks a lot Mykel Everything's beautiful if you look at it long enough...
an easy way would be to read the contents of a file into a buffer and then send the buffer over the net. If the files are big, you can read the files in chunks - and send each chunk over the net and reassemble them on the other side. -- Ich, du, sie, er, es, ihr, sie, Sie.
-
Hi, I would like to be able to send a file (.doc) throught internet with a client/server App. I will probably use MFC & CSocket to code the App. Microsoft documentation tell us that we can send ordinary data (int, double, CString , serializable class etc..) using serialization into CSocket. But what if I want to send a file unstead of data. Is there a way to achieve this? thanks a lot Mykel Everything's beautiful if you look at it long enough...
Check out MSDN for Simple MAPI, or you could use PJ Naughter's CSMTPConnection which here on CP. Do a search.
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!