How to download PDF from resources in Reactive

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

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.

Solution

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!!

You are welcome!

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.


Hi Ranjeet,

I did attached a sample.


Best regards,

Leandro.

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.