Class ImageReplacer

java.lang.Object
com.logicaldoc.form.ImageReplacer

public class ImageReplacer extends Object
Processes an HTML looking for images that reference files inside LogicalDOC and converts them in the Base64 representation.
Since:
7.7.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • ImageReplacer

      public ImageReplacer(File file)
  • Method Details

    • replaceImages

      public void replaceImages() throws IOException
      Throws:
      IOException
    • encodeImage

      public String encodeImage(long docId) throws IOException, com.logicaldoc.core.PersistenceException
      Throws:
      IOException
      com.logicaldoc.core.PersistenceException