简体   繁体   English

在NetBeans JavaDB数据库或SqlLite中具有映像

[英]Having image in netbeans JavaDB database or SqlLite

How can insert and retreive an image in netbeans javaDB database (the one used under services tab/ Or SqlLite). 如何在netbeans javaDB数据库(“服务”选项卡/或SqlLite下使用的数据库)中插入和检索图像。 What type will the attribute type be? 属性类型是什么类型? and how can I get it using CachedRowSet? 以及如何使用CachedRowSet获取它?

In case this is needed JavaDB installation: glassfish-3.1.2.2\\javadb JavaDB location : .netbeans-derby 如果需要安装JavaDB,则为:glassfish-3.1.2.2 \\ javadb JavaDB位置:.netbeans-derby

SqlLite you can not insert a new image into the database using java. SqlLite您不能使用Java将新图像插入数据库。 It's read only.you can insert image into the database using by database. 它是只读的。您可以按数据库使用将图像插入数据库。 Not from the java. 不是来自java。 If you not have to insert image into database means you go for SqlLite.. 如果不必将图像插入数据库,则表示您选择SqlLite。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM