How do you Store a Long Text Field in a Database? : Long Text « Database « Java Tutorial






public static void setLongString(PreparedStatement pstmt, int parameterIndex, String data)
      throws Exception {

    // possibly a long string
    pstmt.setAsciiStream(parameterIndex, new ByteArrayInputStream(data.getBytes()), data.length());
  }








20.23.Long Text
20.23.1.Get a Long Text Column/Field from a Database
20.23.2.How do you Store a Long Text Field in a Database?