Skip to main content
Solved

Extract JPG files through Fulcrum API


galigis
Enthusiast
Forum|alt.badge.img+20

Hi All,

I’m working on a workflow to extract JPG files using the existing Fulcrum API. I have been able to install the Fulcrum web connector from the FME Hub and make the relevant connection to my organisations using a Token. All good.

The problem is am not be able to view the URL photos in my browser as shows ‘This page isn’t working’. Below the workflow to extract the photos:

  • Creator
  • HTTPCaller
  • JSONFragmenter
  • AttributeFileWriter

Below a screenshot of some of the URLs in the JSONFragmenter:

Does anyone know why I am getting the This page isn’t working error?

Best answer by nielsgerrits

I think you need to use a second HTTPCaller instead of the AttributeFileWriter to get the photo. You can write it directly from the HTTPCaller to disk.

View original
Did this help you find an answer to your question?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • April 8, 2024

I think you need to use a second HTTPCaller instead of the AttributeFileWriter to get the photo. You can write it directly from the HTTPCaller to disk.


galigis
Enthusiast
Forum|alt.badge.img+20
  • Author
  • Enthusiast
  • April 8, 2024

Classy. It worked! I had to slightly modify the expression for the second HTTP caller based on the API query expression and add /large.jpg

Below an screenshot of the workflow for completeness.

 


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • April 8, 2024
nielsgerrits wrote:

I think you need to use a second HTTPCaller instead of the AttributeFileWriter to get the photo. You can write it directly from the HTTPCaller to disk.

Great solution!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings