Joget DX Beta Available for Download
Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.
In this article, we will show you on how to show images from form upload field by using the JDBC Datalist Database Binder.
Figure 1: Image in a listing
This is what we want to achieve, as shown in Figure 1 above.
We will need to get the path to the image first, as shown in Figure 2 above.
Figure 2: Getting the URL of the image
Then, in the Datalist, we will need to construct the img html tag, mimicking the image URL path. In this case, we are using the default database and writing the SQL based on MySQL database.
Note: If you are using Joget Workflow v5, you can control whether you want the image files to be accessed as anonymous or not. In Joget Workflow v4, one must be logged in in order to see the images.
You can download sample app used in this article for your reference.