Convert string to file and send this image through email attachment
<p>I get an image from a PHP server as a string (<a href="http://www.buzzmob.com/api/upload/buzz/12022107323422653000_Art_Nature.jpg" rel="nofollow">this image</a>), and I want to send this image by e-mail as a attachment.</p>

<p>When I try to send e-mail, then the attachment is papers but only plain text is displaying at the receiver end. How do I send the e-mail correctly?</p>

<p>This is my code:</p>

<pre><code>Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND);
picMessageIntent.setType("image/jpeg");
String img_source = listBuzzInfoBean.get(photo).getBuzzImage();
File downloadedPic = new File(Environment.getExternalStorageDirectory(), img_source + ".jpg");// Art_Nature

Log.d("++++++++++++++", img_source);
Uri myUri = Uri.fromFile(downloadedPic);
picMessageIntent.putExtra(Intent.EXTRA_STREAM, myUri); //screenshotUri
startActivity(Intent.createChooser(picMessageIntent, "Share image using"));
</code></pre>
