943,536 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 504
  • Java RSS
Feb 13th, 2009
0

About byte array

Expand Post »
hello,
I am using byte array to store values in it & then i am storing that
byte array into database using

Java Syntax (Toggle Plain Text)
  1. st.setBytes(1,myBytearray);


while retreiving values it works fine if last byte value is not zero.
But if it is zero, i think,last value is not getting saved in database.
So there is problem while retrieving the values from database and it says that last byte is not available.

How can I solve this problem.It's very urgent.Plz help.
Similar Threads
Reputation Points: 9
Solved Threads: 0
Light Poster
srs_grp is offline Offline
34 posts
since Sep 2008
Feb 13th, 2009
0

Re: About byte array

We need more details as to the type of "st" and your entire query, table structure etc.
What do you expect us to solve from the given information.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Feb 13th, 2009
0

Re: About byte array

Sounds like a problem with the database itself or the JDBC driver implementation.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,756 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: difference
Next Thread in Java Forum Timeline: 'J' Suffix and Swing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC