Tech Rams wrote:

BTW, OpenSSL has a flag for such cases - BIO_FLAGS_BASE64_NO_NL. Setting this flag would allow data with no line breaks to be decoded.

I tried using this at one point. It caused yet more problems in that something *with* a line break at the correct point broke. So if you have something that is non-spec with where it puts the line break, you are out of luck.

It also means you have to pre-scan the base64 text to work out what you are going to do - which is just plain ugly.

Cheers,
        Berin

Reply via email to