package com.kofax.mobile.sdk._internal.impl; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Base64; import java.io.Serializable; import o.InterfaceC13391fZD; /* loaded from: classes3.dex */ public class d implements IBase64ImageDecoder, Serializable { @InterfaceC13391fZD public d() { } @Override // com.kofax.mobile.sdk._internal.impl.IBase64ImageDecoder public Bitmap decode(String str) { byte[] decode = Base64.decode(str, 0); Bitmap decodeByteArray = BitmapFactory.decodeByteArray(decode, 0, decode.length); if (decodeByteArray != null) { return decodeByteArray; } throw new IllegalArgumentException("Unable to decode image"); } }