Frans,
The mistake in your original code is largely due to the
BIO_set_mem_eof_return(mem, 0);
call at the start as that one prevents the bio chain from signaling
'should retry' upon error conditions (such as BIO_mem becoming empty,
due to BIO_read pulling the data out of it).
Instead, things
On Thu January 1 2009, Frank B. Brokken wrote:
> Hi Mike,
>
> Thanks for your postings in reply to my base64 decoding problem. I must admit
> that I saw your first posting only after sending out the reply to William, so
> let's correct that here :-)
>
> In your last posting you wrote:
>
> > Are
Hi Mike,
Thanks for your postings in reply to my base64 decoding problem. I must admit
that I saw your first posting only after sending out the reply to William, so
let's correct that here :-)
In your last posting you wrote:
> Are you stripping the bytes that might appear in the stream
> that do
On Wed December 31 2008, Frank B. Brokken wrote:
> Hi William,
>
> Thanks for your reply. I followed your suggestion and changed the buffer size
> to 480: where the original program shows `500' it now has
> `480'. Unfortunately, after uncommenting the `Doesn't work' section the
> problem remains.
Hi William,
Thanks for your reply. I followed your suggestion and changed the buffer size
to 480: where the original program shows `500' it now has
`480'. Unfortunately, after uncommenting the `Doesn't work' section the
problem remains. Only the first block is decoded. Since 480 clearly fits the
r
Since base64 regroups the original 8-bits based binary into groups of 6 bits
for encoding, using padding as needed. So each original 8 bits is shared by two
6 bits, it is like a chain. To make your code work, you have to find out the
exact point, where a 8 bit is not shared. For example, chang
On Tue December 30 2008, Frank B. Brokken wrote:
> Hi List-members,
>
> The following problem has (in some form) popped up on this list repeatedly,
> but after having browsed the archives until the beginning of this century I
> didn't encounter (or simply missed?) a solution for my current problem