Skip to content

Commit f8dc194

Browse files
committed
Update info about rendering images from file storage in HTML templates #1027
1 parent 4b07964 commit f8dc194

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/modules/reports/pages/creation/templates.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ An image can be served statically by the application. For example, the image hos
319319

320320
* by Bitmap
321321
+
322-
An image is added as a byte array within the `src` attribute. This approach allows you to use variables for the `FileDescriptor` attributes of the entities. The byte array can even be added directly to the template, even though this approach is not recommended:
322+
An image is added as a byte array within the `src` attribute. This approach allows you to use variables for the `FileRef` attributes of the entities. The byte array can even be added directly to the template, even though this approach is not recommended:
323323
+
324324
[source, html, indent=0]
325325
----
@@ -338,16 +338,18 @@ An image is added as a byte array within the `src` attribute. This approach allo
338338
border="0"
339339
align="right"/>
340340
----
341-
** `fs://` prefix allows inserting an image by specifying `FileDescriptor` ID. For example:
341+
** `fs://` prefix allows inserting an image by specifying `FileRef` format. For example:
342342
+
343343
[source, html,indent=0]
344344
----
345-
<img src="fs://fede432a-4f5d-3bab-71a0-b98133759b0f"
345+
<img src="fs://2025/07/08/78c65527-9cb7-ee77-940f-86e31b214f49.jpeg?name=filename.jpeg"
346346
height="68"
347347
width="199"
348348
border="0"
349349
align="right"/>
350350
----
351+
+
352+
NOTE: The query parameter `?name=\{original_filename}.\{ext}` is mandatory. The system relies on this parameter to correctly parse the string and reconstruct the `FileRef` object.
351353
--
352354

353355
[[html_to_pdf]]

0 commit comments

Comments
 (0)