title: How to convert image to hexstring using JAVA (1.5)?
body: <p><p>
  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:<p>
  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)<p>
  2. I need to have the image represented as a string with the HEX code and a 0x prefix, like this:<p>
  Image -> String = '<strong>0xFFD8FFE000104A46494600010200000100010000FFDB0</strong>'</p>
  
  <p>Thanks in advance to anyone who tries to help! Any sample code or library will be appreciated!</p>