diff --git a/src/xercesc/util/Base64.cpp b/src/xercesc/util/Base64.cpp
index 8462f2869e6686d9d3e1d4ae06239ba2d5d1e559..464f5c6e3a93f47ee302e46abdc65904e2b7bfb6 100644
--- a/src/xercesc/util/Base64.cpp
+++ b/src/xercesc/util/Base64.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.4  2002/03/19 17:01:20  peiyongz
+ * Fix to Bug#7243 Base64 encoding is not working.
+ *
  * Revision 1.3  2002/02/18 16:07:38  peiyongz
  * fix: "i" redefined on line 428 reported by compilers on some UNIX platforms
  *
@@ -210,6 +213,7 @@ XMLByte* Base64::encode(const XMLByte* const inputData,
     {
         // second octet not present
         // two PADs e.g. 3c==
+        encodedData[ outputIndex++ ] = base64Alphabet[ b2 ];
         encodedData[ outputIndex++ ] = base64Padding;
         encodedData[ outputIndex++ ] = base64Padding;
     }