cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about down a file

YanFeiHu
Confirmed Champ
Confirmed Champ

Hi Team;

   How could we download a file using JS or Java code, please refer follow picture.

   Thanks a lot.

image

4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator

The simplest way would be to use the ReST API to retrieve the content of that file using the getNodeContent operation  - you have to use the UUID of the node as the nodeId for this operation, i.e. if the nodeRef for that document is workspace://SpacesStore/12345 then the UUID would be 12345

Hi 

  Thank you so much for the response.

  1, Can I download the file by create an action? if yes, could you show me a simple case please.

  2, Can I transform the file into stream file then sending to another remote computer?

 

You can take reference of Existing Download Action.

Hi

    Thank you for your advice.

    Could you tell me where to find the 'Existing Download Action' code please?