[ http://issues.apache.org/jira/browse/IBATISNET-93?page=all ]
Gilles Bayon closed IBATISNET-93:
---------------------------------
Fix Version: DataMapper 1.3
Resolution: Cannot Reproduce
> ArgumentOutofRange Exception in
> IBatisNet.DataMapper.TypesHandler.ByteArrayTypeHandler.GetValueByIndex(Int,
> IDataReader)
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: IBATISNET-93
> URL: http://issues.apache.org/jira/browse/IBATISNET-93
> Project: iBatis for .NET
> Type: Bug
> Components: DataMapper
> Versions: DataMapper 1.1
> Environment: WinXP, MSSQL 2000
> Reporter: Andrew English
> Fix For: DataMapper 1.3
>
> If IBatisNet reads a byte stream (in my specific instance it was an image)
> for which (numBytes % bufferSize == 0) is true from the database (MSSQL in
> this case) MemoryStream.write throws an exception. I believe this is because
> the last # of bytes read was 0 since the previous read finished off the file
> completely. So after the loop there is the clean up write which writes
> (int)bytesRead -1 bytes to the MemoryStream.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira