title: half image displayed when converted blob type to base64 in php and mysql
body: <pre><code>while($row=mysqli_fetch_array($res))
      {
          $image = $row['image'];
  
          if($counter == 0)
          {
              $Indicators .='&lt;li data-target="#carousel-example-generic" data-slide-to="'.$counter.'" class="active"&gt;&lt;/li&gt;';
              $slides .= '&lt;div class="item active"&gt;
              &lt;div class="fill"&gt;
              &lt;img src="data:image/jpg;base64,'.base64_encode($image).'" alt="photo"&gt;&lt;/div&gt;
            &lt;/div&gt;';
  
          }
          else
          {
              $Indicators .='&lt;li data-target="#carousel-example-generic" data-slide-to="'.$counter.'"&gt;&lt;/li&gt;';
              $slides .= '&lt;div class="item"&gt;&lt;div class="fill"&gt;
              &lt;img src="data:image/jpg;base64,'.base64_encode($image).'" alt="photo"&gt;&lt;/div&gt;
  
            &lt;/div&gt;';
          }
          $counter++;
      }
  </code></pre>
  
  <p>Little portion from top to somewhere in middle of image is displayed.I have stored images in mysql database and type of image is blob.When trying to convert and display using php they appear to be half cut from bottom ot i think they are not converted fully.
  Original image:<a href="http://i.stack.imgur.com/Hi9d0.jpg" rel="nofollow">Original image</a>
  After converting in base64 image displays as below:<a href="http://i.stack.imgur.com/kSLb5.png" rel="nofollow">Converted image to base64</a></p>