throws SQLException
{
checkSetParameterIndex(paramInt1, true);
if (paramInputStream == null)
throw Util.sqlException(Trace.error(62, 176));
HsqlByteArrayOutputStream localHsqlByteArrayOutputStream = null;
try
{
localHsqlByteArrayOutputStream = new HsqlByteArrayOutputStream();
int i = 2048;
byte[] arrayOfByte = new byte[i];
int j = paramInt2;
while (j > 0)
{
int k = paramInputStream.read(arrayOfByte, 0, j > i ? i : j);
if (k == -1)
break;
localHsqlByteArrayOutputStream.write(arrayOfByte, 0, k);
j -= k;
}
setParameter(paramInt1, localHsqlByteArrayOutputStream.toByteArray());
}
catch (IOException localIOException1)
{
throw Util.sqlException(34, localIOException1.toString());
}
finally
{
if (localHsqlByteArrayOutputStream != null)
try
{
localHsqlByteArrayOutputStream.close();
}
catch (IOException localIOException2)
{
}
}