OpenAI Dall-E image generation

I generate a Image with OpenAI Dalle-3. I have chosen the Response Format “Image File”.
Now I want to send this Image as a E-Mail. But there is just some weird Text.

I have tried to convert it with the base64 function and the to binary function as described under the Module, but that don’t work.
Does anyone have a suggestion?

Thanks for your Help.

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields, filters, and error messages in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Szenario:

Input OpenAI Module:


Output OpenAI Module:
[
{
“created”: “2023-12-20T13:35:11.000Z”,
“data”: [
{
“fileName”: “output1.png”,
“fileData”: “IMTBuffer(3147861, binary, 796d9d84958cf63c7421eb17271ac54e79205896): 89504e470d0a1a0a0000000d4948445200000400000004000802000000f07fbcd400010000494441547801000b84f47b014dabf6fffe09f80300ff0200fffc00fdff00ffff00000000ffff00feff00000000ff0000ffff00ffff00020100fffe00020100”
}
],
“resImgName”: “output1.png”,
“resImgData”: “IMTBuffer(3147861, binary, 796d9d84958cf63c7421eb17271ac54e79205896): 89504e470d0a1a0a0000000d4948445200000400000004000802000000f07fbcd400010000494441547801000b84f47b014dabf6fffe09f80300ff0200fffc00fdff00ffff00000000ffff00feff00000000ff0000ffff00ffff00020100fffe00020100”
}
]

Body Content Mail:
grafik

You’ll need to convert to JPG first.

Screenshot_2023-12-20_231202

As you can see, the binary data has changed to a correct JPG format that you can use:

2 Likes