We are trying to generate barcodes on the pdf without using any external site. I have the generated base64 string which i am calling on my vf page to generate the image of barcode. My barcode is not generating with below code.
Controller -
public string base64Image{get;set;}
base64Image ='iVBORw0KGgoAAAANSUhEUgAAAX4AAAGbAQAAAADrKMZgAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAEnRFWHRTb2Z0d2FyZQBCYXJjb2RlNEryjnYuAAABL0lEQVR42u3cMYrDMBCF4SdUuLMuEKxrpFjQlVKmi7qUuZLAha/hkAsknYrgWTn9LuuFDSz8gimE5usfMyDZtvMU4G+ApNDv0l1+ukgpu7Ec5OvJWQ3RsruO2bW+9mx9nAAAAAAAAAAAPwfaH2ZvLxCtakh2t3EF1QAAAAAAAAAA7wDuNmU1oDTlIVUt6kJLdP3wIUUAAAAAAAAAwHYw7BRmddnGuiay4Czb4s+9fAUAAAAAAAAA/Aa4WwlzsuxKl+PzKDfmIJ/dtXR3DwAAAAAAAAB4A9Buvy4ecyw6zL6G2VurFehhAAAAAAAAAIDtwN2q1hlZLMliOZ4Wb1pSfiw6fjUjAwAAAAAAAAB8B66zgpV0kTobWiJrTbakc9/uAAAAAAAAAIAtgP/I/iX4BA/r6xFNW/F3AAAAAElFTkSuQmCC';
VF page -
<apex:image value="data:image/png;base64,{base64Image}" styleClass="barcodeFirst" />
<apex:image>
code block under the "broken image" in your question).