 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bradley Kieser Guest
|
Posted: Sun Feb 22, 2004 10:57 pm Post subject: getByteArray(column name) works once only for a row |
|
|
I have an app that I wrote a dataset listener for. The listener is a
navigation listener. It displays the binary contents of a columne on the
present row in the dataset as an image on the screen in a JLabel.
It works well... for the first time. Every "new" row navigated to
displays the image perfectly. But when I go back to a row that I had
previously navigated, the display is empty.
I have determined that the problem lies in getByteArray which I call
like this:
imageDisplay.setIcon(new
ImageIcon(mediaDataModule1.getMediaQuery().getByteArray("binary_data")));
It seems that the getByteArray call is reading the column like a file
and once it had read it once, it doesn't reset the file pointer to the
start of the column data again.
I am using JDBC and Postgresql.
Can anyone help? I don't see a "file reset" command for binary data on a
column in the command list.
Thank you!
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|