Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; import android.graphics.BitmapFactory; import java.io.InputStream; public class Main { public static Bitmap decodeInputStream(InputStream stream) { return BitmapFactory.decodeStream(stream); } }