fork download
import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String imageData = "data:image/jpeg;base64,SGVsbG8sIHdvcmxkIQ==";
		imageData = imageData.replaceFirst("^data:image/[^;]*;base64,?","");
		byte[] bytes = javax.xml.bind.DatatypeConverter.parseBase64Binary(imageData);
		System.out.println(new String(bytes));
	}
}
Success #stdin #stdout 0.08s 380672KB
stdin
Standard input is empty
stdout
Hello, world!