MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / getBitmapImage

Method getBitmapImage

src/com/odoo/util/Base64Helper.java:106–113  ·  view source on GitHub ↗

Gets the bitmap image. @param context the context @param base64 the base64 @return the bitmap image

(Context context, String base64)

Source from the content-addressed store, hash-verified

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.

Callers 4

setDrawerHeaderMethod · 0.95
setupViewMethod · 0.95
getViewMethod · 0.95
createContactMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected