HtmlViewer
HtmlViewer copied to clipboard
Rendering huge inlined images may lock the rendering process
When using very large images (our example had 2 MB) and passing the contents via src="data:image/png;base64,...", the rendering eventually seems to stall. The reason is buried in the GetQuotedStr helper in ReadHTML where a character by character concatenation approach is used.
I switched to using a TStringBuilder object which immediately resolves the issue. Ideally, all places where htAppendStr and htAppendChr are used could be changed to TStringBuilder.