$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] ASIO: What is the proper way to upload a LARGE file?
From: michi7x7 (mailing-lists_at_[hidden])
Date: 2011-01-13 17:04:05
Hi,
why don't you just do something like this?
tcp::iostream net_stream(SERVER_ADDR, "12345");
std::ifstream fstream("file");
net_stream << fstream.rdbuf();
It's up to the stream-implementations to buffer the data appropriately then.
Regards,
michi7x7