Ciao ragazzi,
vorrei avere un aiuto su come poter estrapolare dei dati presenti in un campo di tipo CLOB.
Precisamente io inserisco in questo campo un file XLS in questo modo
Per l'estrazione uso il metodocodice:File data = new File("file.xls"); reader = new FileReader(data); "UPDATE TB_REPORT SET " + "FIELD_CLOB_ELENCO = ?, " + "FIELD_DATA_AGGIORN = SYSDATE, " + "WHERE FIELD_ID_PK = ?"; String query = UPDATE_REPORT; prepStat = istCon.prepareStatement(query); prepStat.setCharacterStream(1, reader, (int) data.length()); prepStat.setLong(2, id); prepStat.executeUpdate();
che mi restituisce un oggetto di tipo Reader.codice:getCharacterStream()
Fatto ciò come dovrei elaborare questo oggetto al fine di avere un array di char da inviare ad una jsp che non farà altro che contenere un content-type pari a application/vnd.ms-excel?
Grazie in anticipo

Rispondi quotando

