Skip to main content
Solved

API Call to download a file from my shared resource folder in the FME server

  • November 4, 2022
  • 5 replies
  • 165 views

myfriendtae
Contributor

Hello, 

 

I would like to download a jpg file from my FME server and save it to my local drive with an API call. 

 

Using FME desktop, I am not sure which transformer/writer to use, and I can't seem to find my REST API call to work. There are a few API documentations in the web, but what I tried was a GET call, but it doesn't seem to download anything.

https://<fmeserver.example.com>/fmerest/v3/resources/connections/<MY_SHARED_SOURCE>/filessys/<file_directory/filename.jpg>

I am pretty sure my auth and permission is file.

 

Can someone please guide me how to achieve my goal?

 

Kind regards,

Tae

Best answer by david_r

Thank you for replying. I have tried the exact path, but it doesn't seem to return my file. Can you please explain a bit further?

Did you look in the API documentation? There's a concrete example of how to use the endpoint:

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/#!/resources/postDownload_post_9

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.

5 replies

david_r
Celebrity
  • 8391 replies
  • November 4, 2022

You can use the FMEServerResourceConnector transformer to e.g. download resource files from FME Server.

See https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/fmeserverresourceconnector.htm


Forum|alt.badge.img
  • 13 replies
  • November 4, 2022

myfriendtae
Contributor
  • Author
  • Contributor
  • 3 replies
  • November 8, 2022

Thank you for replying. I have tried the exact path, but it doesn't seem to return my file. Can you please explain a bit further?


david_r
Celebrity
  • 8391 replies
  • Best Answer
  • November 8, 2022

Thank you for replying. I have tried the exact path, but it doesn't seem to return my file. Can you please explain a bit further?

Did you look in the API documentation? There's a concrete example of how to use the endpoint:

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/#!/resources/postDownload_post_9


myfriendtae
Contributor
  • Author
  • Contributor
  • 3 replies
  • November 8, 2022

Thank you for replying. I have tried the exact path, but it doesn't seem to return my file. Can you please explain a bit further?

Thank you very much. It seems the API point is working now. I think the header needs to be set as per the documentation. My apologies... I didn't think I can expand each section to look thoroughly...