Question
fusionAix
NL
Last activity: 30 Jul 2024 6:55 EDT
Using Binary Image File in Pega Constellation
Hi,
Currently, we are working on Pega constellation. The Image components that are in pega constellation documentation are using image source as URL's. But, in real time we will refer the Binary file which we created in Pega. How can we refer that file URL's. So, Is there any way we can build the component which takes the binary file as input and render the Image.
Thanks,
Nagarjuna.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Maantic Technologies Pvt Ltd
US
Please go through the link below for your reference.
Adding images to Image Library (pega.com)
Hope it helps.
Thank You
Megha
fusionAix
NL
Hi,
In Constellation we do not have image control as we do sections based UI. So, we have Img component which we published. But we can only refer image sources from browser. But I need to refer the binary file that we created.
Is there any OOTB in pega using which we can render image in constellation UI.
Thanks,
Nagarjuna.
Maantic Technologies Pvt Ltd
US
I could not find any OOTB rule for your requirement.
Please see if these links helps you:
Thanks
Megha
Pegasystems Inc.
GB
@NagarjunaReddySangana In Constellation UI, you can use the Image component to display images. However, to refer to a binary file that you created, you would need to convert the binary file into a format that can be used as a source for the Image component. This could be a URL or a data URL. Pega Platform does not provide an out-of-the-box feature to directly render a binary file as an image in Constellation UI. You may need to implement a custom solution to convert the binary file into a suitable format for the Image component.
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
Life cycle of a Constellation DX component > Create the component locally
Constellation DX components > Overview
Please mark accept solution against the reply which helped answer your question
Updated: 7 May 2024 9:47 EDT
Ai4Process
PL
@NagarjunaReddySanganaI am assuming you want to display images that are preserved locally. Displaying images can be achieved by:
1. Creating Data-Content-Image instance.
2. Using JSP tags to get image URL contentURL JavaServer Page tag (pega.com) - in order to get image URL (later on after figuring out how URL is looks like you can create it dynamically e.g. in DT).
3. Use this url in URL control (set display as image) - View in which you plan to display it has to be type of DETAILS (it has to be read only)
Regards, Pawel
Updated: 14 May 2024 13:46 EDT
HCLTech
US
@Pawel Sobolewski Hi Pawel, I followed the same approach but the image is not displaying. Let me know what I'm missing, pls see the attached image
Ai4Process
PL
@DharanidharanProperty value (not alt text in control) should be set to the URL. You need to use absolute path, not relative.
Pegasystems Inc.
CA
Binary Image files are not supported in Constellation. It's recommended to use Image URLs to display the image on the Views.
Yes, you can bundle the images in your assets folder and display the image through a custom DX component <img src>.
Please follow the link to create a custom DX component.
Updated: 30 Jul 2024 6:55 EDT
Bits in Glass
IN
Binary Image files are not supported in Constellation. It's recommended to use image URLs to display the image on the views.
https://support.pega.com/question/constellation-display-image-screen
Wellsfargo
IN
You can use binary files as below in pega constellation for image display.
Example: you need to pass binary file name as in below formate.
pxThreard.pxRequestbaseURI+"/webwb/image.png"