BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

getByteArray(column name) works once only for a row

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing
View previous topic :: View next topic  
Author Message
Bradley Kieser
Guest





PostPosted: Sun Feb 22, 2004 10:57 pm    Post subject: getByteArray(column name) works once only for a row Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder DB Swing All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.