sprinfall / webcc

Lightweight C++ HTTP client and server library based on Asio for embedding purpose.
GNU Lesser General Public License v3.0
270 stars 61 forks source link

How to streaming files, i.e., for MP4 file? #11

Open zhangmGoL opened 4 years ago

zhangmGoL commented 4 years ago

In Multimedia Files transmission, streaming is important, how can we use webcc to achieve this?

Thanks.

sprinfall commented 4 years ago

Multipart form doesn't support streaming. If you don't mean multipart form data, here are some examples for data streaming: Client: https://github.com/sprinfall/webcc/blob/master/examples/file_downloader.cc Server: https://github.com/sprinfall/webcc/blob/master/examples/static_file_server.cc Server (RESTful): https://github.com/sprinfall/webcc/blob/master/examples/book_server/views.cc (see BookPhotoView::Put())