B4J Tutorial SithasoDaisy TailwindCSS UI Toolkit: Q & A

Hi there

NB: Where possible, please include a simple project that demonstrates your use case.

Do you have any questions about SithasoDaisy UI Toolkit?

You can shoot it here and we will oblige.

Thanks in advance?


Join on Telegram


Check $5 WebApps

 
Last edited:

Mashiane

Expert
Licensed User
Longtime User
I am not able,
can this code, download my pdf file from website ?
B4X:
SDUIShared.Download("https://www.mywebsite.com/public/pdf/about.PDF", "result.pdf")

or, is there another solution?
This code is a shortcut to download a text file

Try this code (not tested)

B4X:
dim pdfFile As BANanoObject = banano.await(sduishared.FetchAsFile("https://www.mywebsite.com/public/pdf", "about.pdf"))
SDUIShared.DownloadBlob(pdfFile, "result.pdf")
 

giannimaione

Well-Known Member
Licensed User
Longtime User
dim pdfFile As BANanoObject = banano.await(sduishared.FetchAsFile("https://www.mywebsite.com/public/pdf", "about.pdf")) SDUIShared.DownloadBlob(pdfFile, "result.pdf")
a little trick
B4X:
dim myPath = "https://www.mywebsite.com/public/pdf/"
dim myPDF = "about.pdf"
SDUIShared.OpenURLTab(myPath & myPDF) 'open pdf into new page of browser
 

Enrico Fuoti

Active Member
Licensed User
Longtime User
Hello Mashiane,
Is there a way to add and/or retrieve the users avatars in Sithaso from pocketbase?
I couldn't find any example about this.
 
Top