CMIS-619: fixed AtomPub content upload

git-svn-id: https://svn.apache.org/repos/asf/chemistry/dotcmis/trunk@1433379 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/DotCMIS/binding/atompub/atompub-writer.cs b/DotCMIS/binding/atompub/atompub-writer.cs
index a3e828d..525e889 100644
--- a/DotCMIS/binding/atompub/atompub-writer.cs
+++ b/DotCMIS/binding/atompub/atompub-writer.cs
@@ -189,11 +189,10 @@
                 byte[] buffer = new byte[BufferSize];

                 int readBytes = 0;

 

-                do

+                while ((readBytes = br.Read(buffer, 0, BufferSize)) != 0)

                 {

-                    readBytes = br.Read(buffer, 0, BufferSize);

                     writer.WriteBase64(buffer, 0, readBytes);

-                } while (BufferSize <= readBytes);

+                }

             }

         }

     }

diff --git a/release.bat b/release.bat
index f1779d9..892004f 100644
--- a/release.bat
+++ b/release.bat
@@ -25,7 +25,7 @@
 set DOTCMISVERSION=0.5

 set DOTCMISZIPSRC=chemistry-dotcmis-%DOTCMISVERSION%-src.zip

 set DOTCMISZIPBIN=chemistry-dotcmis-%DOTCMISVERSION%-bin.zip

-set DOTCMISRC=RC1

+set DOTCMISRC=RC2

 

 set CYGWIN=ntea