Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

[Help Needed] Download Tool Returns Null for E-commerce Image Links Despite 200 OK

alhamzafri_khairin
6 - Meteoroid

Hi Alteryx Community,

I’m working on a project involving product image URLs from an e-commerce platform and encountered an issue. My goal is to preview product images from the product image links using the Download Tool + Blob Convert Tool, even if the URL doesn’t end with .jpeg or .png. For certain URLs, Alteryx returns null in the DownloadData field, even though the DownloadHeaders indicate HTTP/1.1 200 OK. 

I have tried several ways, such as 

  • Added these custom headers in the Download Tool:

    • User-Agent: Mozilla/5.0

    • Referer: [main platform domain]

    • Accept: image/*

  • Verified the links work in a web browser

  • Checked for missing extensions like .jpeg — issue happens with or without them

So my questions are

1. Why is Alteryx returning null despite a 200 OK response?

2. How can I get Alteryx to treat these links as downloadable images even without extensions?

3. Any workaround to force image interpretation in Blob Convert?

I have attached the workflow along with sample URLs for testing. Thanks in advance for your help! Would love any suggestions or ideas.

 

4 REPLIES 4
Gaurav_Dhama_
12 - Quasar

Try this alternative.

alhamzafri_khairin
6 - Meteoroid

hi @Gaurav_Dhama_ ,

Thank you for helping me on this. The workflow works fine, but is it possible to run the workflow with the images as a temporary file instead? I want to avoid downloading a ton of images into my local device. 

Gaurav_Dhama_
12 - Quasar

You can provide a temp path there in the formula tool.

The reason why I added a path there is so that i can pass the extension as well.

using the option “save as temp file” in download tool saves it as a generic temp file without extension.

alhamzafri_khairin
6 - Meteoroid

Got it! Another thing is that somehow I have an image that can't be rendered and gives an error stating that the image is not a JPEG file. I checked, and it is a PNG file (based on the error 0x89 0x50). Is there a way to detect  PNG files without having to filter out that specific image file in between processes?

Labels
Top Solution Authors