Results 21 to 26 of 26
- 04-08-2012, 04:33 AM #21
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
Re: help how to retrieve image in jtable without writing a picture into hard disk?
this is the code for
i only know how to show text to jtableprivate 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);
}
}
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.
- 04-08-2012, 05:37 AM #22
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?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-08-2012, 04:49 PM #23
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
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
- 04-08-2012, 06:29 PM #24
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-09-2012, 03:08 AM #25
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
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
- 04-09-2012, 04:33 AM #26
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Serial number of exernal hard disk/Thumbdrive
By manucng in forum NetworkingReplies: 13Last Post: 11-14-2011, 08:09 AM -
Hard Disk Bottleneck
By urbanleg in forum New To JavaReplies: 3Last Post: 09-27-2011, 03:02 PM -
How to import image, draw circles/text on it, and save a new image to disk
By InTheEndo in forum Java 2DReplies: 1Last Post: 07-28-2011, 08:48 AM -
Retrieve Image From Hard Disk
By sayan751 in forum AWT / SwingReplies: 3Last Post: 02-20-2009, 03:29 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks