title: Insert Chinese Character String into MySQL LongBlob column as UTF-8
body: <p>By doing this:</p>
  
  <pre><code>File file1 = new File("/usr/local/test/multipartMimeMsg.txt");
              FileOutputStream fos1 = new FileOutputStream(file1);
              String s = byteArrayToHexString(multipartMimeMsg.getBytes());
              fos1.write(s.getBytes(), 0, s.getBytes().length);
  </code></pre>
  
  <p>I verified that my multipartMimeMsg string can see the hexa representation of the chinese characters. I then proceed to do this:</p>
  
  <pre><code>prepstmt.setObject(2, multipartMimeMsg );
  </code></pre>
  
  <p>But it turns up as ??? or 3F3F3F in hexa representation. It should show E4BDA0E5A5BDE59097 Am I missing something? I have set my Table Options to Charset utf8, Collation to utf8_general_ci.</p>
  
  <p>Connection string is  jdbc:mysql://localhost:3306/test</p>