Environment: poco-1.4.3p1 (shared), Visual Studio 2008, Windows XP SP3
Preprocessor Definitions: WIN32;_DEBUG;_CONSOLE;PSAPI_VERSION=1;_WINDOWS;WINVER=0x0500;$(NOINHERIT)
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.