2021-03-17 21:02:36 +00:00
|
|
|
# Download file to disk
|
|
|
|
|
2021-06-30 00:27:09 +00:00
|
|
|
Example that shows how to work with disk access and how to link several Wasm modules into a service.
|
2021-03-17 21:02:36 +00:00
|
|
|
|
|
|
|
# Build & deploy it
|
2021-06-30 00:27:09 +00:00
|
|
|
|
2021-03-17 21:02:36 +00:00
|
|
|
```shell
|
|
|
|
./deploy.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
# Call it
|
2021-06-30 00:27:09 +00:00
|
|
|
|
2021-03-17 21:02:36 +00:00
|
|
|
```shell
|
2022-02-16 16:21:21 +00:00
|
|
|
aqua run \
|
|
|
|
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
2022-03-23 18:29:44 +00:00
|
|
|
-i download_url.aqua \
|
|
|
|
-f'download("https://fluence.network/img/svg/logo_new.svg", "logo.svg", "12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr", "e693d1c3-3fbc-4ccd-8eae-1ba9c767e2f5")'
|
2021-03-17 21:02:36 +00:00
|
|
|
```
|