title: Alexa - How to send image to user?
body: <p>I'm using a Lambda function for my Alexa Skill. For my launch intent, I query DynamoDB and return a String that I first want to convert into a QRCode and then I want to return it to the Alexa Device as an Image inside the <code>responseBuilder</code></p>
  <p>Alexa works fine displaying images from external urls such as</p>
  <p><code>const rabbitImage = &quot;https://i.imgur.com/U6eF0oH.jpeg&quot;;</code></p>
  <pre><code>return responseBuilder
          .speak(say)
          .withStandardCard(&quot;Welcome to Alexa&quot;, &quot;description&quot;, rabbitImage, rabbitImage)
          .reprompt('try again, ' + say)
          .getResponse();
  </code></pre>
  <p>But I'm stuck on how to send the QRCode back to the Alexa Device in the <code>responseBuilder</code>.</p>
  <p>I'm using a <code>nodejs</code> library called <code>qrcode</code> that can convert the String into a QRCode and then into <code>base64</code>.</p>
  <p><a href="https://www.npmjs.com/package/qrcode" rel="noreferrer">https://www.npmjs.com/package/qrcode</a></p>
  <p>But according to the Alexa docs for sending a <code>&quot;card&quot; aka image</code>, back to the user it has to be a url.</p>
  <p><a href="https://developer.amazon.com/en-US/docs/alexa/custom-skills/include-a-card-in-your-skills-response.html" rel="noreferrer">https://developer.amazon.com/en-US/docs/alexa/custom-skills/include-a-card-in-your-skills-response.html</a></p>
  <pre><code>The Alexa Skills Kit provides different types of cards:
  
  A Standard card also displays plain text, but can include an image. You provide the text for the title and content, and the URL for the image to display.
  </code></pre>
  <p>So I'm not sure if the <code>base64</code> generated by the <code>qrcode</code> library would work in this case.</p>
  <p>What's the best way to send the dynamically generated QRCode back to the Alexa Device as a response in this scenario?</p>
  <pre><code>const LaunchRequest_Handler = {
      canHandle(handlerInput) {
        const request = handlerInput.requestEnvelope.request;
        return request.type === 'LaunchRequest';
      },
      handle(handlerInput) {
        const responseBuilder = handlerInput.responseBuilder;
  
  
        //Perform query to DynamoDB
  
        var stringToCreateQRWith = &quot;8306e21d-0c9e-4465-91e9-0cf86fca110d&quot;;
  
        //Generate qr code and send back to user here
        //???Unsure how to do and what format to send it in
        var qrImageToSendToUser = ???
  
        return responseBuilder
          .speak(say)
          .withStandardCard(&quot;Welcome to Alexa&quot;, &quot;description&quot;, qrImageToSendToUser , qrImageToSendToUser )
          .reprompt('try again, ' + say)
          .getResponse();
  
      }
  
  </code></pre>