title: How to convert a String to blob in java?
body: <p>I have a String which contains a large mail body. I need to save it to the database in the form of blob. How to convert it to the <code>blob</code> in java? 
  Sample String below:</p>
  
  <pre><code>&lt;html&gt;&lt;center&gt; &lt;body style='background-color: #e5e4e2;'&gt; &lt;table id='mainTable' style='background-color: #ffffff; width: 70%; height: auto;margin-left: auto; margin-right: auto;'&gt;&lt;tr&gt; &lt;td&gt; &lt;table style='width: 100%;background-color: #2B547E; height: 50px; margin-top: 30px; margin-left: auto; margin-right: auto;'&gt; &lt;tr&gt; &lt;td width='50%'&gt;&lt;img src="cid:image" height='50' width='150' style='padding-left: 10px;'&gt;&lt;/td&gt; &lt;td width='50%' style='text-align: right; color: white; font-family: verdana; font-size: 12px;'&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt;&lt;/table&gt; &lt;table id='mainTable1' style='background-color: #ffffff; width: 70%; height: auto;margin-left: auto; margin-right: auto;'&gt; &lt;tr&gt; &lt;td&gt; &lt;table style='width: 100%; height: 50px; margin-top: 30px; margin-left: auto; margin-right: auto;'&gt;&lt;tr&gt; &lt;td width='50%' style='color:red;font-size:21px;'&gt;Congratulations, Joselyn Valdes-Flores &lt;/td&gt; &lt;td width='50%' style='text-align: right; color: white; font-family: verdana; font-size: 12px;'&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style='font-size:18px;width:97%;font-style:italic'&gt; This email confirms your Phone Interview  with Manager, Accounts Receivable  in   Burger King Corporation  You will be called at your mobile number &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table  style='background-color: #ffffff; width: 70%; height: auto;margin-left: auto; margin-right: auto;'&gt;&lt;tr style='color:green'&gt; Interview LineUp &lt;th style='color:gray;font-size:21px;text-align:left;font-style: italic'&gt;Interviewe&lt;/th&gt;&lt;th  style='color:gray;font-size:21px;text-align:left;font-style: italic'&gt;Timing1&lt;/th&gt;&lt;th  style='color:gray;font-size:21px;text-align:left;font-style: italic'&gt;Timing2&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Jeet Chatterjee&lt;/td&gt;&lt;td&gt;12:00am&lt;/td&gt;&lt;td&gt;2:00am&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ramu&lt;/td&gt;&lt;td&gt;2:00am&lt;/td&gt;&lt;td&gt;4:00am&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;table id='mainTable2' style='background-color: #ffffff; width: 70%; height: auto;margin-left: auto; margin-right: auto; margin-top:12px;'&gt;&lt;tr&gt; &lt;td style='font-size:18px; color:#2B547E;word-wrap: break-word;font-style: italic'&gt; hii&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table  style='background-color: #ffffff; width: 70%; height: auto;margin-left: auto; margin-right: auto;'&gt; &lt;tr&gt; &lt;td style='font-size:18px;color:#2B547E;word-wrap: break-word;font-style: italic'&gt; Best Regards,&lt;/td&gt;&lt;td style='font-size:24px;color:#2B547E;word-wrap: break-word;font-style: italic'&gt; Jeet Chatterjee&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;&lt;/body&gt; &lt;/center&gt; &lt;/html&gt; 
  </code></pre>
  
  <p>I want to save it in a database in the blob column. How to do this??</p>