Hello,I have one custom ribbon button which displays the html page with all related attachments.In click of one view button the attachment displays in IFrame. but for some of the images its not displaying.I have refer the below link for this process.https://mahadeomatre.blogspot.com/2016/10/view-or-download-attachments-for.htmlCan any one help me with the same?Any help would be appreciated.
Hi Jalak,
Is it happening with specific browser? Check the console if it is logging any error and also check the network tab for the images path that you are trying to load.
Can you try using the openWebResource method?
docs.microsoft.com/.../openwebresource
Best Regards
PG
No its not browser specific issue. I used openWebResource method only.
After opening it, for some attachment its working fine and for some its not loading in IFrame.
Can you put a breakpoint in showdata function and get the url and copy it to a separate window and see if it loads.
Check if there is a cross domain issue with failed attachements. Also check if it is a permission issue.
Hope this helps.
Please check whether base64 string is valid by copying all text in src property of img with inspector.
https://jaredwinick.github.io/base64-image-viewer/
https://base64.guru/converter/decode/image
In addition, you could also try those custom controls to display image attachments.
https://pcf.gallery/gallery-control/
https://pcf.gallery/attachment-gallery/
Regards,
Clofly
Have you solved the issue successfully?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 60 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 36 Most Valuable Professional