function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ricardo Coutinho 7Ricardo Coutinho 7 

Import Image to Lightning Components

Hi Guys,
I created a field for contacts name: "image" and now i'm trying to import the image to a lightning component.
I have this code:
<tbody>
    <tr>
      <td data-label="Picture" title="Pic">
         <p>{!contact.Image__c}</p>
      </td>
      <td data-label="Name" title="Name">
        <p>{!contact.Name}</p>
      </td>
      <td data-label="birthdate" title="birthdate">
        <p>{!contact.Birthdate}</p>
      </td>
      <td data-label="Steet" title="street">
          <p>{!contact.MailingStreet}</p>
      </td>
      <td data-label="Email" title="email">
        <p>{!contact.Email}</p>
      </td>
    </tr>
  </tbody>
But the final import is this:

User-added image
As you can see, he is importing the field but i don't know why the image is not showing, instead he show's the code...
 
Ricardo Coutinho 7Ricardo Coutinho 7
I already know how it is.
I need to use outputRichText tag, like this:

<ui:outputRichText value="{!contact.Image__c}"/>