B4J Tutorial SithasoDaisy TailwindCSS UI Toolkit: Q & A

Mashiane

Expert
Licensed User
Longtime User
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…