|
|
|
@ -478,28 +478,6 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BufferedImage GetBufferedImage(String base64string) |
|
|
|
|
{ |
|
|
|
|
BufferedImage image = null; |
|
|
|
|
try { |
|
|
|
|
InputStream stream = BaseToInputStream(base64string); |
|
|
|
|
image = ImageIO.read(stream); |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
return image; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public InputStream BaseToInputStream(String base64string){ |
|
|
|
|
ByteArrayInputStream stream = null; |
|
|
|
|
try { |
|
|
|
|
BASE64Decoder decoder = new BASE64Decoder(); |
|
|
|
|
byte[] bytes1 = decoder.decodeBuffer(base64string); |
|
|
|
|
stream = new ByteArrayInputStream(bytes1); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
} |
|
|
|
|
return stream; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void endElement(String tag) { |
|
|
|
|
if (!tagsSupported.containsKey(tag)) |
|
|
|
|