|
|
|
@ -197,6 +197,9 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
|
|
|
|
|
if (follow != null) { |
|
|
|
|
HashMap prop = new HashMap(); |
|
|
|
|
prop.put(follow, null); |
|
|
|
|
FactoryProperties.insertStyle(h, this.cprops); |
|
|
|
|
prop.putAll(h); |
|
|
|
|
|
|
|
|
|
cprops.addToChain(follow, prop); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -303,7 +306,12 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
|
|
|
|
|
String[] srcArray = src.split(","); |
|
|
|
|
String base64string = srcArray[srcArray.length -1]; |
|
|
|
|
byte[] bytes = decoder.decodeBuffer(base64string); |
|
|
|
|
img = Image.getInstance(bytes); |
|
|
|
|
try { |
|
|
|
|
img = Image.getInstance(bytes); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (img == null) { |
|
|
|
|
if (!src.startsWith("http")) { |
|
|
|
|