Hello,
  I'm using the Base64 supplied in org.apache.util.Base64, when ever I pass
certain byte[]'s to 
        encode(byte[] binaryData)

  I get 

java.lang.ArrayIndexOutOfBoundsException        
at org.apache.util.Base64.encode(Base64.java:181)       
at
com.softwareag.xtools.xdav.testtools.logger.LoggerTest.test(LoggerTest.java:
25)     
at java.lang.reflect.Method.invoke(Native Method)       
at junit.framework.TestCase.runTest(TestCase.java:155)  
at junit.framework.TestCase.runBare(TestCase.java:129)  
at junit.framework.TestResult$1.protect(TestResult.java:100)    
at junit.framework.TestResult.runProtected(TestResult.java:117)         
at junit.framework.TestResult.run(TestResult.java:103)  
at junit.framework.TestCase.run(TestCase.java:120)      
at junit.framework.TestSuite.run(TestSuite.java:144)    
at junit.swingui.TestRunner$18.run(TestRunner.java:709) 

  I get this when mainly trying to encode the contents of non text files
like .gif or .jpg

Chris Harding


                         +---+
                       /\|___|/\ 
                        ( o o ) 
 /===================oOO==(_)==OOo=====================\ 
 |  Chris Harding                     |    Room 282    |
 | [EMAIL PROTECTED] |    Ext 1046    |
 |------------------------------------|----------------|
 |"Keep your distance though, Chewie, but don't look   |
 |like you're trying to keep your distance. ...        |
 |I don't know. Fly casual. -- Han Solo                |
 \=====================================================/ 
                         || || 
                        ooO Ooo 

Reply via email to