Skip to content

Python b"0x00" results in Java byte[]{0x78,0x30,0x30} on parameter passing #1146

Closed Answered by mzaiprog
mzaiprog asked this question in Q&A
Discussion options

You must be logged in to vote

After some more testing, I figured out, the problem can be solved by calling bytes() function before passing the parameter.

Use:

BytesTestClass.printBytes(bytes(b"\x00"))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mzaiprog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant