---
schema_version: "1"
id: ec0a9927427d2b458d99f4b9984743d2f027f0a1825cc08d8bf397ed2ae08571
title: ConnectApi.InlineImageSegmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_inline_image_segment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_inline_image_segment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bd6d8a3d6c1347ce7c2fe06883cc623da380c42c3cc03b276a91be72775ae2ff
description: An inline image segment.
---
# ConnectApi.InlineImageSegmentInput

An inline image segment.

Subclass of [ConnectApi.MessageSegmentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_messageSegmentInput.htm "Used to add rich message segments to feed items and comments.").

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d655818e46">Property</th>

              <th class="featureTableHeader vertical-align-top " id="d655818e49">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d655818e52">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d655818e55">Required or Optional</th>

              <th class="featureTableHeader vertical-align-top " id="d655818e58">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d655818e46 d655818e58" data-title="Property"><samp class="codeph apex_code">altText</samp></td>

              <td class="entry" headers="d655818e49" data-title="Type">String</td>

              <td class="entry" headers="d655818e52" data-title="Description"><span class="ph" id="altTextDesc"><a name="altTextDesc"><!-- --></a>Alt text for the inline image.</span></td>

              <td class="entry" headers="d655818e55" data-title="Required or Optional">Optional<p class="p" id="altTextOptional"><a name="altTextOptional"><!-- --></a>If not specified, the title of the inline image
                  file is used as the alt text.</p>
              </td>

              <td class="entry" headers="d655818e46 d655818e58" data-title="Property">35.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d655818e46 d655818e58" data-title="Property"><samp class="codeph apex_code">fileId</samp></td>

              <td class="entry" headers="d655818e49" data-title="Type">String</td>

              <td class="entry" headers="d655818e52" data-title="Description"><span class="ph" id="fileIdDesc"><a name="fileIdDesc"><!-- --></a>ID of the inline image file.</span></td>

              <td class="entry" headers="d655818e55" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d655818e46 d655818e58" data-title="Property">35.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [Post a Rich-Text Feed Element with Inline Image](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/connectapi_examples_post_feed_element_richtext_inlineimage.htm "Post a Rich-Text Feed Element with Inline Image - HTML (New Window)")
- [ConnectApi.MessageBodyInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_msgBody.htm "Add rich messages to feed items and comments.")