is it possible to develop a database application to demonstrate storing and retrieving of BLOB (Binary Large Object) and CLOB (Character Large Object) objects using Front - end : Java, Back-end : Oracle
I have installed Netbeans7.3.1 and Oracle 11g
is it possible to develop a database application to demonstrate storing and retrieving of BLOB (Binary Large Object) and CLOB (Character Large Object) objects using Front - end : Java, Back-end : Oracle
I have installed Netbeans7.3.1 and Oracle 11g
当然这是可能的。作为入口点,您可以从这里开始Oracle JDBC 教程
或者可能在这里(取决于您想要实现的目标) Oracle Java EE 6 教程
这个问题很模糊——但是是的。有很多方法;我的偏好是在您的 Oracle 数据库中使用 JPA(我使用 EclipseLink)之类的东西。为数据库设置 JPA 后,创建一个实体并在字段上使用 @Lob 注释将其标记为 Lob 类型。然后,您可以从数据库中检索它并将其作为对象处理。在 Blob 的情况下,您会返回一个字节数组,而 Clob 作为字符串返回。