Skip to main content
Solved

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


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

ccctae wrote:

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

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

5 replies

david_r
Celebrity
  • 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
  • November 4, 2022

myfriendtae
Contributor
  • Author
  • Contributor
  • November 8, 2022
sal wrote:

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
  • Best Answer
  • November 8, 2022
ccctae wrote:

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
  • November 8, 2022
ccctae wrote:

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...


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