Ciao Ragazzi grazie per il vostro interesse, ecco il codice:
public void insertArticolo(ArgomentoJavaBean argBean){
try{
// Prepare a statement to insert a record
pstmt = con.prepareStatement(INSERT_ARTICOLO);
pstmt.setString(1, argBean.getTitoloArticolo());
pstmt.setString(2,argBean.getDataInserimentoArtico lo());
pstmt.setString(3, argBean.getArticolo());
pstmt.setInt(4, argBean.getIdArgomento());
pstmt.setString(5, argBean.getAttachmentName());
// Insert the row
pstmt.executeUpdate();
}catch(Exception ex){
System.out.println("Attenzione errore nel metodo insertArticolo di tipo: ");
ex.printStackTrace();
}finally{
closeConnection(con);
//closePreparedStatement(pstmt);
//closeResultSet(resultset);
}//end try
}//end method
Per il mio umile pensiero, secondo me, il problema è più legato al database e al tipo del campo, più tosto che al codice, cosa ne pesate voi?.