I’ve been struggling with this for some time, and since I’m originally not a programmer, I’d appreciate any help.Here’s the situation:
1. I have an image file on the file system, as well as converted to byteArrayOutputStream and to a ByteArray.(currently it’s not critical which to choose, so any of these will work fine for input data)
2. I need to have the image represented as a string with the HEX code and a 0x prefix, like this:
Image -> String = ‘0xFFD8FFE000104A46494600010200000100010000FFDB0‘
Thanks in advance to anyone who tries to help! Any sample code or library will be appreciated!
This is the code that worked for me:
Thanks for the help anyway!