HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › relative URL to a servlet in the “img”-tag throws a MalformedURLException › Reply To: relative URL to a servlet in the “img”-tag throws a MalformedURLException
August 11, 2023 at 14:14
#36777
Judging from the error stack, the PD4ML tries to load the image as a file, which cannot succeed with a servlet:
at com.pd4ml.cache.ServletResourceProvider.getResourceAsStream(y:1928)
at com.pd4ml.ResourceProvider.getResourceAsBytes(y:2080)
at com.pd4ml.cache.e.new(y:404)
at com.pd4ml.cache.e.return(y:380)
at com.pd4ml.cache.FileCache.getImage(y:375)