# Save an image from CloudConvert API

**URL:** <https://forum.bubble.io/t/save-an-image-from-cloudconvert-api/346254>\
**Category:** APIs\
**Created:** [October 30, 2024, 3:04pm UTC](https://forum.bubble.io/t/save-an-image-from-cloudconvert-api/346254 "2024-10-30T15:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tart2000design](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tart2000design/32/171697_2.png) [@tart2000design](https://forum.bubble.io/u/tart2000design)\
**Post date:** [October 30, 2024, 3:04pm UTC](https://forum.bubble.io/t/save-an-image-from-cloudconvert-api/346254/1 "2024-10-30T15:04:50Z")

</div>

Hi,  
I am using the CloudConvert API and I was quite happy with it until I realized that Bubble isn’t actually saving the image I get back from the API calls, but it seems to be saving the link to the temporary image created by CC instead.  
So after a couple of days (when the links have expired), my images are all blank.  
But I can’t find out what I’m doing wrong.  
Here is the BEWF that is supposed to save the image :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90868481f856ca2d5f353fb81ea5083e0b5a4fe0.png)  
And here is the API call :

```auto
{
    "tasks": {
        "get-url": {
            "operation": "capture-website",
            "url": "<link>",
            "output_format": "jpg",
            "engine": "chrome",
            "screen_width": 1200,
			"screen_height": 800,
            "quality": 80,
            "wait_until": "load",
            "wait_time": 3000,
            "filename": "Link_<date>.jpg"
        },
        "export-image": {
            "operation": "export/url",
            "input": [
                "get-url"
            ],
            "inline": false,
            "archive_multiple_files": false
        }
    },
    "tag": "link_preview"
}

```

Any idea what I am doing wrong ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [October 30, 2024, 3:25pm UTC](https://forum.bubble.io/t/save-an-image-from-cloudconvert-api/346254/2 "2024-10-30T15:25:06Z")

</div>

You need to use :saved on s3 to store the image in Bubble Storage instead of using the original url provided by cloudconvert that expire after 24h

---

<div class="post-metadata">

**Author:** ![tart2000design](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tart2000design/32/171697_2.png) [@tart2000design](https://forum.bubble.io/u/tart2000design)\
**Post date:** [October 30, 2024, 3:26pm UTC](https://forum.bubble.io/t/save-an-image-from-cloudconvert-api/346254/3 "2024-10-30T15:26:45Z")

</div>

OK so it seems I have found the solution.  
So I’m posting it here for future generations.  
I had 2 problems :

- the result of the API (when initializing) needed to be set as ‘image’  

- I added the :save to Bubble storage command at the end  

It seems to be working now.  
I’m kind of questioning other aspects of my app now that I have figured this out… Bubble could make this a bit more clear…
