Results 1 to 3 of 3

Thread: problem

  1. #1
    durgaprasad is offline Member
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default

    Could you post the code you have so far with comments in it describing what you want to do?

  3. #3
    durgaprasad is offline Member
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •