Gets the bitmap image. @param context the context @param base64 the base64 @return the bitmap image
(Context context, String base64)
| 104 | * @return the bitmap image |
| 105 | */ |
| 106 | public static Bitmap getBitmapImage(Context context, String base64) { |
| 107 | |
| 108 | String imagestring = base64; |
| 109 | byte[] imageAsBytes = Base64.decode(imagestring.getBytes(), 5); |
| 110 | return BitmapFactory.decodeByteArray(imageAsBytes, 0, |
| 111 | imageAsBytes.length); |
| 112 | |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Gets the rounded corner bitmap. |
no outgoing calls
no test coverage detected