Questions about down a file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2022 07:07 AM
Hi Team;
How could we download a file using JS or Java code, please refer follow picture.
Thanks a lot.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 06:34 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2022 09:37 PM
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 a stream file then sending to another remote computer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2022 01:13 AM
You can take reference of Existing Download Action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2022 10:54 AM
Hi
Thank you for your advice.
Could you tell me where to find the 'Existing Download Action' code please?
