Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6570291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:44:17+00:00 2026-05-25T14:44:17+00:00

I would like to know if there any difference between Java byte code and

  • 0

I would like to know if there any difference between Java byte code and .NET byte code? If there any difference, shall I take hexadecimal values of that Java byte code and .Net byte code. Because, hexadecimal is independent of languages and it is universal specification.

Problem description

We are developing a mobile application in j2me and Java. Here I am using external finger print reader for reading/verifying finger print. We are using one Java api for reading/verifying finger print.

I capture the finger template and raw image bytes. I convert the raw image bytes into hex form and stored in a separate text file.

Here we using a conversion tool (developed in .NET) that converts the hex form into image. With the help of that tool we are trying to get the image from that text file. But we cannot get the image correctly.

The .NET programmer says the Java byte and .NET byte differ. Java byte ranges from -128 to 127. But .NET byte ranges from 0 to 255. So there is a problem.

But my assumption here is: the hex is independent of Java & .net. It is common to both. So, instead of storing byte code in text file, I plan to convert that byte code into hexadecimal format. So,our .NET conversion tool automatically convert this hexadecimal into Image.

I don’t know whether I am going on correct path or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:44:18+00:00Added an answer on May 25, 2026 at 2:44 pm

    I capture the finger template and raw image bytes .I convert the raw image bytes into hex form and stored in a separate text file.

    OK; note, storing as binary would have been easier (and more efficient), but that should work

    Here we using a conversion tool (developed in .NET) that converts the hex form into image.With the help of that tool we are trying to get the image from that text file.But we cannot get the image correctly.

    Rather than worrying about the image, the first thing to do is check where the problem is; there are two obvious scenarios:

    • you aren’t reading the data back into the same bytes
    • you have the right bytes, but you can’t get it to load as an image

    First; figure out which of those it is, simply by storing some known data and attempting to read it back at the other end.

    The .NET programmer says the java byte and .NET byte differ.Java byte ranges from -128 to 127.But .NET byte ranges from 0 to 255.So there is a problem.

    That shouldn’t be a problem for any well-written hex-encode. I would expect a single java byte to correctly write a single hex value between 00 and FF.

    I dont know, whether i am going on Correct path or not?

    Personally, I suspect you are misunderstanding the problem, which makes it likely that the solution is off the mark. If you want to make life easier, store as binary rather than text; but there is no inherent problem exchanging hex around. If I had to pack raw binary data into a text file, personally I’d probably go for base-64 rather than hex (it will be shorter), but either is fine.

    As I mentioned above: first figure out whether the problem is in reading the bytes, vs processing the bytes into an image. I’m also making the assumption that the bytes here are an image format that both environments can process, and not (for example) a custom serialization format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just I would like to know, is there any difference between if (a==5) or
I would like to know if there is any difference between calling [super viewDidUnload]
Is there any practical difference between the .net decimal values 1m and 1.0000m? The
I would like to know, if there are any performance differences using NFS instead
I would like to know if there is any way to add custom behaviour
I would like to know if there is any easy way to print multiple
I would like to know if there are any tools that can help me
I would like to know if there are any xml coding standards. <?xml version=1.0?>
I would like to know if there are any templates for doing this in
I would like to know if there is any managed or unmanaged library for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.