Timeline for Retrieving an image from rich text field?
Current License: CC BY-SA 3.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2019 at 13:08 | comment | added | Renato Oliveira | Might want to open a different question for that. Your issue now seems to be related to encoding instead of retrieving the image URL. I'm not sure I can help without seeing how the URL is formed or how you are retrieving it. | |
May 24, 2019 at 13:05 | comment | added | Nehal | @RenatoOliveira, can you help me on this. How to replace | by | . I have tried using replace function, but it is not working it shows the same url | |
May 24, 2019 at 12:42 | comment | added | Nehal | @RenatoOliveira I checked the url, there is a veritcal bar in my url which is replaced by | . I guess this might be creating issues and & is changed to & | |
May 24, 2019 at 11:27 | comment | added | Renato Oliveira | @Nehal perhaps your link is broken or you don't have access to it then? Because that's how the HTML is stored in Salesforce as well (look at the image in my post). | |
May 24, 2019 at 11:03 | comment | added | Nehal | @RenatoOliveira, still not working. Tried this as well <img src="{!link}" alt="Location"/> | |
May 24, 2019 at 10:42 | comment | added | Renato Oliveira | @Nehal use a simple HTML image tag instead of the Visualforce one. | |
May 24, 2019 at 9:50 | comment | added | Nehal | how can I pass the link Variable in Image tag on VF. It Shows src unkown to me. I received the extracted src and did this on VF ''<!apex:image alt="" url="{!link}" id="image"/> | |
May 18, 2018 at 12:24 | comment | added | Tabrez Ansari | Nice solutions, resolved my issues as well | |
May 26, 2016 at 14:29 | comment | added | Renato Oliveira | I didn't find the answer on Trailhead. I used an object that is used on the lessons (because I was too lazy to create one just to simulate your issue). If you are interested though, the trail I got this object from is the Developer Beginner. | |
May 26, 2016 at 14:22 | comment | added | Viraj | On which module did you find this at the Trailhead? | |
May 26, 2016 at 13:43 | comment | added | Viraj | Charm! I used this in a way I wanted and it worked! Thanks again mate. | |
May 26, 2016 at 13:43 | vote | accept | Viraj | ||
May 26, 2016 at 13:42 | comment | added | Renato Oliveira | Added sample code on my post. Check it out. | |
May 26, 2016 at 13:42 | history | edited | Renato Oliveira | CC BY-SA 3.0 |
added 661 characters in body
|
May 26, 2016 at 5:53 | comment | added | Viraj | Could you pls provide any example that would help. Still stuck... | |
May 25, 2016 at 20:22 | comment | added | Renato Oliveira |
No, because you have the alt tag too. I would use <img and img> and then get the URL separately.
|
|
May 25, 2016 at 20:16 | comment | added | Viraj |
Read about it. So, in my case you meant to say, I will have to add the <img src as open and <img> as the 2 parameters?
|
|
May 25, 2016 at 19:57 | comment | added | Renato Oliveira |
Query for the field in the controller, and use the method substringBetween(open, close) from the String class. developer.salesforce.com/docs/atlas.en-us.apexcode.meta/…
|
|
May 25, 2016 at 19:54 | comment | added | Viraj | How simple is it? On the fly, how do I retrieve that scr code? | |
May 25, 2016 at 19:52 | history | answered | Renato Oliveira | CC BY-SA 3.0 |