Overview
Features
Download
Documentation
Community
Add-Ons & Services

Base64Encoder

Please post support and help requests here.

Base64Encoder

Postby changire » 07 Dec 2012, 09:52

Environment: poco-1.4.3p1 (shared), Visual Studio 2008, Windows XP SP3
Preprocessor Definitions: WIN32;_DEBUG;_CONSOLE;PSAPI_VERSION=1;_WINDOWS;WINVER=0x0500;$(NOINHERIT)

Hi,
I'm using the Base64Encoder as per the sample program but the encoded file length is 2 bytes less than what the sample program produces.
Obviously the Base64Decoder produces a file which is again 2 bytes less than the original and hence is corrupted.

However, the sample program for base64encode and base64decode works perfectly.

With such a short description, could anybody be able to point to me as to what could I be missing in my version of the program.
I have also ensured that close() is called on the input as well as output streams.

Regards,
Milind
changire
 
Posts: 7
Joined: 07 Dec 2012, 09:40

Re: Base64Encoder

Postby changire » 10 Dec 2012, 09:37

Issue resolved.

I was closing the input and output stream to the encoder and had missed out closing the encoder itself.

Regards,
Milind
changire
 
Posts: 7
Joined: 07 Dec 2012, 09:40

Re: Base64Encoder

Postby kevin00000000 » 03 Apr 2014, 10:49

:D
I made the same mistake!
kevin00000000
 
Posts: 1
Joined: 25 Dec 2012, 10:46


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron