System.out.println("isc_attach_database");
System.out.println("test- isc_attach_database");
    public void testReadBlob() throws Exception {        System.out.println();        System.out.println("testReadBlob");        db1 = gds.get_new_isc_db_handle();                System.out.println("isc_attach_database");        gds.isc_attach_database("localhost:/opt/interbase/examples/v5/employee.gdb", db1, c);	//        db1 = createDatabase("localhost:/opt/interbase/examples/v5/employee.gdb");        t1 = startTransaction(db1);	isc_blob_handle_impl blob1 = (isc_blob_handle_impl)gds.get_new_isc_blob_handle();        isc_stmt_handle stmt1 = gds.get_new_isc_stmt_handle();                System.out.println("isc_dsql_allocate_statement");        gds.isc_dsql_allocate_statement(db1, stmt1);                        System.out.println("isc_dsql_prepare");        XSQLDA out_xsqlda = gds.isc_dsql_prepare(t1, stmt1, "SELECT C1, C2 FROM t2 WHERE C1 = 1",                             GDS.SQL_DIALECT_CURRENT);                System.out.println("isc_dsql_execute2");        gds.isc_dsql_execute2(t1, stmt1, 1, null, null);        //        System.out.println("isc_dsql_set_cursor_name");//        gds.isc_dsql_set_cursor_name(stmt1, "cur1", 0);        //        int fetch_stat;        while (gds.isc_dsql_fetch(stmt1, 1, out_xsqlda) != null) {            for (int i = 0; i < out_xsqlda.sqld; i++) {                Object data =  out_xsqlda.sqlvar[i].sqldata;                System.out.print(data + "    ");            }            System.out.println();	    blob1.blob_id = ((Long)out_xsqlda.sqlvar[1].sqldata).longValue();        }            System.out.println("isc_dsql_free_statement");        gds.isc_dsql_free_statement(stmt1, GDS.DSQL_drop);	//blob1.rbl_buffer_length = 1024;	gds.isc_open_blob2(db1, t1, blob1, null);	byte[] answer = gds.isc_get_segment(blob1, 1026);	System.out.println("answer length: " + answer.length + " " + new String(answer));	gds.isc_close_blob(blob1);	commit(t1);	//	teardownTable2(db1);	//        dropDatabase(db1);       }