This is an issue I detected during the development of a web application. It is not blocking, but may take some time to find out.
A TImageControl loads an image through an URL containing a base64 string. This may be a single line string of a string organized in lines separated by CRLF. A TGraphic can also load image data through loading an URL containing a Base64 string. However, in this case this must be a single string. Loading a Base64 string organized in lines separated by CRLF produces a crash.
A small example illustrates the problem (see picture below): the base64 string from an existing image (1) is used to load another picture (2) and a TGraphic (4). When transforming this single line string into a set of lines separated by CRLF, loading another picture (3) succeeds and loading the TGraphic (5) fails.
The attached program contains the corresponding code:
Project1.zip (26.3 KB)
Kind regards,
Michel Huybrechts
Micriconsult BV