1893
Views
8
Comments
Solved
How to download PDF from resources in Reactive
Question

hi, i have a Reactive app, and I want a button that only downloads a pdf that i have in my resources.

But i can not access to this binary data

2021-08-30 15-28-09
Leandro Correa
Solution

Hi Adrian,

You can create a Server Action with a output parameter of binary type, so you can select the content of the resource.

So, use the server action on the download statement.

Regards,

Leandro.

2019-11-03 11-32-41
Adrián Poveda Sanchis

Leandro Correa wrote:

Hi Adrian,

You can create a Server Action with a output parameter of binary type, so you can select the content of the resource.

So, use the server action on the download statement.

Regards,

Leandro.


Thanks!!

2022-02-01 04-03-06
Ranjeet Singh

Leandro Correa wrote:

Hi Adrian,

You can create a Server Action with a output parameter of binary type, so you can select the content of the resource.

So, use the server action on the download statement.

Regards,

Leandro.

Hello

I did not find content attribute.there are only URL attribute.

Please suggest how can i download file from Resources folder.


2021-08-30 15-28-09
Leandro Correa

2021-08-30 15-28-09
Leandro Correa

You are welcome!

2021-08-30 15-28-09
Leandro Correa

Hi Ranjeet,

I did attached a sample.


Best regards,

Leandro.

ResourceDownload.oml
2022-02-01 04-03-06
Ranjeet Singh

Leandro Correa wrote:

Hi Ranjeet,

I did attached a sample.


Best regards,

Leandro.


Hello Leandro,

Thank you for help.

i have find another option for the same.

can you suggest which one is better for download static files from resource folder.

blob1.jpeg
2024-02-22 23-38-31
Rahman Brussolo

Thank you, it solved it for me, I'm missing that detail of first using a server action.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.