ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew English (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATISNET-93) ArgumentOutofRange Exception in IBatisNet.DataMapper.TypesHandler.ByteArrayTypeHandler.GetValueByIndex(Int, IDataReader)
Date Wed, 13 Jul 2005 23:01:10 GMT
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


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


Mime
View raw message