Skip to main content
Solved

Extract JPG files through Fulcrum API

  • April 8, 2024
  • 3 replies
  • 119 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+62
  • 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
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • 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.

Great solution!