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

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.

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.

Sounds like a problem with the database itself or the JDBC driver implementation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.