title: Logic Apps and Outlook embedded images
body: <p>I want to copy embedded images from an outlook email to my blob storage.  I have a step to run a For Each over the email attachments (the embedded images are recognized as attachments).  But the when I look at the raw input for the email message, the attachment[0].contentBytes is Null.  And the error I get when trying to create the blob using setting the blob content to &quot;Attachments Content&quot; is:</p>
  <p>&quot;InvalidTemplate. Unable to process template language expressions in action 'Create_blob' inputs at line '1' and column '3316': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see <a href="https://aka.ms/logicexpressions#base64ToBinary" rel="nofollow noreferrer">https://aka.ms/logicexpressions#base64ToBinary</a> for usage details.'.&quot;</p>
  <p>Here is the Raw Input to the &quot;When new email arrives&quot; step:</p>
  <pre><code>&quot;Attachments&quot;: [
      {
        &quot;@odata.type&quot;: &quot;#Microsoft.OutlookServices.FileAttachment&quot;,
        &quot;Id&quot;: &quot;12345&quot;,
        &quot;LastModifiedDateTime&quot;: &quot;2020-11-22T07:38:19+00:00&quot;,
        &quot;Name&quot;: &quot;footer.jpg&quot;,
        &quot;ContentType&quot;: &quot;image/jpeg&quot;,
        &quot;Size&quot;: 13969,
        &quot;IsInline&quot;: false,
        &quot;ContentBytes&quot;: null
      }
  ]
  </code></pre>
  <p>Any help with these steps is much appreciated.  Thanks!</p>