hi
I want to store the data from Jco.table to ByteArray using jco
I a trying with this but i am getting follwing exception
java.lang.ArrayIndexOutOfBoundsException: 1
at com.sap.mw.jco.JCO$Record.getByteArray(JCO.java:12859)
at com.example.Downloaad.main(Downloaad.java:41)
this is at t=(byte[])test.getByteArray(i);
File f =new File("c:/testing.doc");
java.io.FileOutputStream fout=new java.io.FileOutputStream(f);
byte[]t=null;
System.out.println(test.getCapacity());
for(int i=0;i<test.getNumRows();i++)
{
t=(byte[])test.getByteArray(i);
test.nextRow();
}
for(int j=0;j<t.length;j++)
{
fout.write(t[j]); }