Skip to Main Content

New to Java

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!

How to convert bytes to long and vice versa?

854208Apr 27 2011 — edited May 12 2011
Hi,

I am uploading an image in Managed bean and passing it to EJB using web services. Before passing it to EJB i want to convert bytes to long, and vice versa too. How can i do so?

Contents of image are in bytes, which is a number.

Pls help.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2011
Added on Apr 27 2011
20 comments
664 views