svn-javahl: streamFileContent and large files
From: Manuel Freiholz <m.freiholz_at_cadenas.de>
Date: 2006-02-07 11:07:16 CET
Hi,
I'm not sure, but i think i found a bug in the new method of the
----
while (contentSize > 0)
{
size_t readSize = bufSize > contentSize ? contentSize : bufSize;
Err = svn_stream_read(read_stream, (char *)bufData, &readSize);
if (Err != NULL)
{
env->ReleaseByteArrayElements(buffer, bufData, 0);
svn_stream_close(read_stream);
JNIUtil::handleSVNError(Err);
return;
}
env->ReleaseByteArrayElements(buffer, bufData, JNI_COMMIT);
env->CallVoidMethod(outputStream, writeMethod, buffer, 0, readSize);
if (JNIUtil::isJavaExceptionThrown())
{
env->ReleaseByteArrayElements(buffer, bufData, 0);
svn_stream_close(read_stream);
return;
}
contentSize -= readSize;
}
----
The code is reading from the "read_stream" and fills the OutputStream
completly. -> No Buffering possible in my java.
So i have the problem in my code that i can not download large files
like 80 MB and bigger directly via "streamFileContent" from subversion.
Is there anybody with the same problem who knows a solutions?
Greetings,
- Manuel
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 7 11:08:14 2006
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.