04-27-2023 08:10 AM - last edited on 05-24-2023 12:00 PM by JackLacava
Hi,
does anyone have a clue on how to use the Binary Array facility inside the Image component in a BI Viewer? I couldn't find anything in the documentation apart a simple mention. How do I actually load image files inside this Binary Array?
Thanks 🙂
Solved! Go to Solution.
04-28-2023 04:31 AM - edited 04-28-2023 06:15 AM
Yes. In your case, I think what you want is the URI option. You can put all your images on a webserver somewhere, named after the possible contents of that field (e.g. "account1.png"), then specify the URI option with something like "https://example.com/images/{0}.png". When the field contains the value "account1", the component will contain the image at https://example.com/images/account1.png .
04-27-2023 12:04 PM
That feature allows you to retrieve a picture dynamically, according to the contents of the datasource field you've bound to the Attribute slot. If the record provided by the datasource contains an image in that field (as a binary field like Varbinary, I believe), it will be retrieved and displayed.
You seem to have bound the Account field, which will only contain an account name. That's not going to work with Binary Array.
04-28-2023 03:35 AM
Thank for replying. So only one image can be bound then? I have to display a different image according to the content of the field.
04-28-2023 04:31 AM - edited 04-28-2023 06:15 AM
Yes. In your case, I think what you want is the URI option. You can put all your images on a webserver somewhere, named after the possible contents of that field (e.g. "account1.png"), then specify the URI option with something like "https://example.com/images/{0}.png". When the field contains the value "account1", the component will contain the image at https://example.com/images/account1.png .
04-28-2023 04:57 AM
Yep I did this way.
Thanks Jack!
04-30-2023 09:20 PM
I know you already got the answer, however another way to do this will be to create a table and load the image binary as varbinary into the table, once you have that you can use it in BI viewer and change it based on the row selection.