Skip to main content
Solved

Can a datadownload from FME Server start without returning the download link?

  • February 16, 2017
  • 5 replies
  • 17 views

erik_jan
Contributor
Forum|alt.badge.img+18

I uploaded a workspace to a FME Server using the Datadownload service.

I call this service and workspace from a custom webpage.

All is working as designed, but I would like to skip the download link that is returned by the service.

I would like the Datadownload service to start downloading the file as soon as the file is generated.

I can't find the right option for this.

My URL looks like: http://localohost:8080/fmeserver/fmedatadownload/myrepository/myworkspace.fmw?

Can anybody help?

Best answer by fmelizard

The data streaming service will zip multiple file output and the download will start as soon as the workspace completes.

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

5 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • February 17, 2017
Do you have to call it from a webpage? if you can call it from a workspace then it should be easy to set up a httpcaller to use the download link.

 

 


david_r
Celebrity
  • February 17, 2017

If your custom web page uses an XMLHttpRequest to trigger the Datadownload service, you could include an event handler that intercepts the download URL returned from FME Server and then download using something like this: https://ausdemmaschinenraum.wordpress.com/2012/12/06/how-to-save-a-file-from-a-url-with-javascript/


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • February 18, 2017

The data streaming service will zip multiple file output and the download will start as soon as the workspace completes.


erik_jan
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • February 20, 2017
fmelizard wrote:

The data streaming service will zip multiple file output and the download will start as soon as the workspace completes.

HI @aaronkoning: I tried this and ended up with this error:

 

"Failed to extract or package datasets at output location: C:\\ProgramData\\Safe Software\\FME Server\\resources\\system\\temp\\engineresults\\FME_4452076C_1487603043638_6128"

 

when I downloaded a zipped Shape file.

 


erik_jan
Contributor
Forum|alt.badge.img+18
  • Author
  • Contributor
  • February 20, 2017
fmelizard wrote:

The data streaming service will zip multiple file output and the download will start as soon as the workspace completes.

And I found the output data in a subfolder of:

 

"C:\\ProgramData\\Safe Software\\FME Server\\resources\\data"

 

 


Reply


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