public static boolean isEmbeddedBase64Image(String uri){
  return (uri != null && uri.startsWith("data:image/"));
}

public static boolean isEmbeddedBase64Image ( String uri ) { return ( uri != null && uri . startsWith ( "data:image/" ) ) ; }
detect if an uri represents an embedded base 64 image .
