Results 1 to 3 of 3
Thread: problem
- 07-16-2008, 03:49 PM #1
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
problem
iam
setup net bean enveranmet in my system and iam useing postgersql
i am creating the table useing table name imagedata
in that col.. imageid,imagepic
i am useing ImageDatasqlmap.xml for inserting image into table
get image into the table
and imageBean.java for set'r and get'r s
and sqlMapConfig.xml this is My total project cofigaration file
in this also image file
but want cteate class
useing this i want set and get the image
- 07-16-2008, 04:40 PM #2
Could you post the code you have so far with comments in it describing what you want to do?
- 07-17-2008, 06:16 AM #3
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
problem
public class image {
public static void main(String[] args) throws Exception {
// set the data
SqlMapClient c = ItMateSqlMapClient.getSingletonInstance().getSqlMa pClientRef();
ImageDataBean bean = new ImageDataBean();
bean.setImageID(100);
byte[] value = new String(" This is the data").getBytes();
bean.setImageData(value);
c.insert("insertImageData", bean);
ageData("get image id",bean);
I iam writing this code but give me how to read this data


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks