Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26
Like Tree1Likes

Thread: help how to retrieve image in jtable without writing a picture into hard disk?

  1. #21
    knowmeifyou is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    this is the code for

    private void UpdateJTable(){
    String sql = "Select * from table3";
    try{
    pst = conn.prepareStatement(sql);
    rs = pst.executeQuery();
    jTable1.setModel(DbUtils.resultSetToTableModel(rs) );
    }
    catch(Exception e){
    JOptionPane.showMessageDialog(null, e);
    }
    }
    i only know how to show text to jtable

    not image. how do i create a image from ms access data type OLE Object. without writing and show it to my jtable

    sorry im really a beginner. but really want to learn. i read the link in post number then last night but can't figure it out :-(
    Last edited by knowmeifyou; 04-08-2012 at 05:06 AM.

  2. #22
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    Use code tags, not quote tags, to post code.

    What does DbUtils.resultSetToTableModel(...) do? Is that a class you have coded or did you get it somewhere?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #23
    knowmeifyou is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    i used rs2xml.jar sir to show text to my jtable

  4. #24
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    Well, I won't be able to help you with that as I've never heard of it, let alone used it. But you could check whether it offers any API for retrieving a byte[] or an Image.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #25
    knowmeifyou is offline Member
    Join Date
    Apr 2012
    Posts
    13
    Rep Power
    0

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    thank you sir. please help me with what you know that can help me solve this problem or hints

  6. #26
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: help how to retrieve image in jtable without writing a picture into hard disk?

    You can't go on to the next step before you succeed in getting the image data out of the data table in a usable format. Let us know when you achieve that, and tell us what kind of data you've retrieved, and we'll be in a position to guide you further.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Serial number of exernal hard disk/Thumbdrive
    By manucng in forum Networking
    Replies: 13
    Last Post: 11-14-2011, 08:09 AM
  2. Hard Disk Bottleneck
    By urbanleg in forum New To Java
    Replies: 3
    Last Post: 09-27-2011, 03:02 PM
  3. Replies: 1
    Last Post: 07-28-2011, 08:48 AM
  4. Retrieve Image From Hard Disk
    By sayan751 in forum AWT / Swing
    Replies: 3
    Last Post: 02-20-2009, 03:29 PM

Posting Permissions

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