You basically have two choices, both of which are in the below code:
public static void main(String[] args) {
String value = "\"iVBORw0KGgoAAAANSUhEUgAAAwoAAADwCAYAAACg2ZPDAAAABHNCSVQICAgIfAhkiAAAIABJREFU\\neJzt3XecXVW99";
System.out.println(value.replace("\"", "").replace("\\n", ""));
System.out.println(value.replaceAll("\"|\\\\n", ""));
}