Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import java.io.InputStream; public class Main { public static Bitmap Stram2Bitmap(InputStream is) { if (is != null) { return BitmapFactory.decodeStream(is); } else { return null; } } }