public static String getData(String dataUrl) {
        int indexOfComma = dataUrl.indexOf(',');
        return dataUrl.substring(indexOfComma + 1);
    }
public static String getData ( String dataUrl ) { int indexOfComma = dataUrl . indexOf ( ',' ) ; return dataUrl . substring ( indexOfComma + 1 ) ; }
Gets data embedded in data url.
@param dataUrl url to extract data from.
@return data part of URL.