Results 1 to 20 of 26
- 04-05-2012, 09:28 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
- 04-05-2012, 10:17 AM #2
Re: help how to retrieve image in jtable without writing a picture into hard disk?
Depends what you mean by 'retrieve' in
And files are written to disk, not pictures.how to retrieve image in jtable
And is it really beyond your capability to capitalize the first letter of each sentence and appropriate letters of JDK class names, and spell "I'm" correctly? This is a technical forum, not SMS chat.
Recommended reading: How to ask questions the smart way
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-05-2012, 12:58 PM #3
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?
Please help me sir im sorry for my question if it is not proper
i know how to retrieve picture by writing the picture from a database to a path sir then browse it and put it to the JButton
sorry for my bad english.
- 04-05-2012, 01:43 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: help how to retrieve image in jtable without writing a picture into hard disk?
Read the image from the database into a byte[].
Create an ImageIcon from that byte[].
Create a JButton using that ImageIcon.Please do not ask for code as refusal often offends.
- 04-05-2012, 02:02 PM #5
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?
SIR tolls can you help me how to do that?
im really newbie
- 04-05-2012, 02:13 PM #6
Re: help how to retrieve image in jtable without writing a picture into hard disk?
Tolls suggested three steps. Which one do you require help with?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 12:14 AM #7
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?
We can't do it in jTable sir? because i only have four jButton. what if in database i have five pictures so i can't retrieve the fifth one. but in jTable i can retrieve them all. But i don't know how to do that.
Sir can you help me in Read the image from the database into a byte[].?
- 04-06-2012, 04:46 AM #8
Re: help how to retrieve image in jtable without writing a picture into hard disk?
Last edited by DarrylBurke; 04-06-2012 at 04:48 AM.
Why do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 04:50 AM #9
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 only know this two things sir
access a database table in java using query.
a resulset is the output of the query right?
- 04-06-2012, 04:58 AM #10
Re: help how to retrieve image in jtable without writing a picture into hard disk?
So read the API of ResultSet to find what methods you need to use.
Trail: JDBC(TM) Database Access (The Java™ Tutorials)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 06:16 AM #11
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 know how to do that sir. but i cant retrieve image to jtable
i only know how to retrieve text to jtable
not image
- 04-06-2012, 06:45 AM #12
Re: help how to retrieve image in jtable without writing a picture into hard disk?
How is the image stored in the database table? In what format?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 06:50 AM #13
Re: help how to retrieve image in jtable without writing a picture into hard disk?
If you don't break this up into its several parts you're going to keep on repeating that. Not only that, but you haven't been adequately clear on what you do and don't know, leading to unnecessary posts and lengthening both the thread and the time it will take to arrive at a solution.
You don't "retrieve image to jtable"
You read a field from a database table into an appropriate data structure or class (which involves a few steps)
You construct an Icon from the image data (which involves a few steps)
You display that Icon in a JTable (which involves a few steps)
We're still on the last step of the first above, since it's only just become clear that you do know how to access a database table and get a RecordSet from it. Hopefully.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 07:18 AM #14
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?
so what do i need to do first sir? know how to retrieve the data from my database database to java first?
- 04-06-2012, 02:42 PM #15
Re: help how to retrieve image in jtable without writing a picture into hard disk?
See #10.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-06-2012, 03:41 PM #16
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?
where is #10 sir? sorry i really want to learn but i dont know how to start.
- 04-06-2012, 05:17 PM #17
Re: help how to retrieve image in jtable without writing a picture into hard disk?
Here.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-07-2012, 01:18 AM #18
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?
ah you mean post number 10 sir heheh. ill try it thank you
- 04-07-2012, 01:59 PM #19
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?
sir can u give me some hints how to retrieve a picture then put it to jtable? i really can do it :-(
i already read the post number ten but i don't know how to apply it to the program
-
Re: help how to retrieve image in jtable without writing a picture into hard disk?
You've yet to show code showing what you've tried or how it's not working for you. How will we know where you're stuck and what you need help with? Short of writing a complete huge program, how can we help you here?
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