[Cppcms-users] Base64? Re: HTTP response and binary stream (libharu)
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2015-09-18 08:44:05
|
On Thursday, September 17, 2015 11:58:48 PM Marcel Hellwig wrote: > you could and/or should (depending on what are you trying to do) return > a base64 encoded string. Thanks Joerg and Marcel, you open new avenues of investigation for me. I've just been researching the base64 solution, and I fail to see where to employ it and how it would solve the problem. First, the HTTP protocol does not use base64 encoding. It supports binary streams natively (how else would pictures and what not be transferred?). As far as I am aware, Base64 was/is mostly used for mail transport. Secondly, unless I missed it, the PDF protocol does not support base64 encoded PDF files. I cannot find any information about this. What am I trying to do? Create within my cppcms application a PDF document on the fly (dynamically), and return a proper .pdf file to the user via cppcms and the HTTP protocol. As far as I am aware, the problem is either within my cppcms application or within cppcms itself. My experience is limited, and I may be missing something, but I fail to see at what stage to use Base64 strings and how it would help. I'm still looking and testing... Cheers, augustin. . |