Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

copying bytes from byte[] with an offset

807580Feb 27 2010 — edited Feb 28 2010
Sometimes I get stuck with dping simple things in java.
       byte [] data = rs.getBytes(i);
       premyst.setBytes(i,data]);
Now I want to copy the data but skip the first, say 78 bytes.

In C I would have said data+78.


Thanks,

Christoph
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2010
Added on Feb 27 2010
6 comments
485 views