Fix for ALF-16795 CMIS 0.8 TCK - load of large content fails

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43617 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2012-11-14 19:59:59 +00:00
parent d030fbc296
commit 8642f05890

View File

@@ -2672,7 +2672,10 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
if (contentStream.getStream() != null)
{
OutputStream out = new BufferedOutputStream(new FileOutputStream(tempFile), bufferSize);
InputStream in = new BufferedInputStream(contentStream.getStream(), bufferSize);
//InputStream in = new BufferedInputStream(contentStream.getStream(), bufferSize);
// Temporary work around for bug in InternalTempFileInputStream which auto closes during read
// BufferedInputStream subsequent use of available() throws an exception.
InputStream in = contentStream.getStream();
byte[] buffer = new byte[bufferSize];
int i;