Re: [Cppcms-users] HTTP response and binary stream (libharu)
Brought to you by:
artyom-beilis
From: Joerg S. <jo...@br...> - 2015-09-17 11:20:35
|
On Thu, Sep 17, 2015 at 05:52:03PM +0800, augustin wrote: > I am trying to get my cppcms application to output a PDF file (using libharu). > However, I seem to have a problem returning the binary output. > It seems that the cppcms internals are corrupting the stream. Works fine for me, but I don't set raw mode or anything like that, just: response().content_type("application/pdf"); response().out() << pdf; where pdf is a std::string. Joerg |