www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - b64 files

reply Adi Shavit <adishavit_thisdoesnotbelonghere_ gmail.com> writes:
Hi,

  I'm using b64 to encode some binary blobs and I want to save the encoded data
to a file.
For a pretty file I used b64::B64_F_LINE_LEN_64 when encoding.
When I read the file using the >> operator for b64::string_t it (naturally)
reads just the first line, up to the line break.
It would be nice to be able to read b64::blob_t directly from the file ro to
somehow allow the full encoded string to be read.

Thanks,
Adi
Nov 08 2009
parent "Matt Wilson" <matthewwilson acm.org> writes:
I'm happy to add an include/b64/util.hpp for such things, if you want to 
contribute an algorithm to do the thing you suggest.

Matt

:-)

"Adi Shavit" <adishavit_thisdoesnotbelonghere_ gmail.com> wrote in message 
news:hd6olk$sga$1 digitalmars.com...
 Hi,

  I'm using b64 to encode some binary blobs and I want to save the encoded 
 data to a file.
 For a pretty file I used b64::B64_F_LINE_LEN_64 when encoding.
 When I read the file using the >> operator for b64::string_t it 
 (naturally) reads just the first line, up to the line break.
 It would be nice to be able to read b64::blob_t directly from the file ro 
 to somehow allow the full encoded string to be read.

 Thanks,
 Adi 
May 23 2010