Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Sending file

Sending file

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminjsonquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MemLeak
    wrote on last edited by
    #1

    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...

    J P 2 Replies Last reply
    0
    • M MemLeak

      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...

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • M MemLeak

        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...

        P Offline
        P Offline
        PJ Arends
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups