1. Alexander Stolte

    Android Example [B4X] Supabase Storage - Download file with Progress This is a very simple tutorial on how to download a file and show the progress in a progressbar. With my small image there is not much progress, it makes more sense to use this function with...
  2. Alexander Stolte

    Android Example [B4X] Supabase - Storage Files This is a very simple tutorial on how to use the storage file options. Upload File Uploads a file to an existing bucket. Dim UploadFile As Supabase_StorageFile =...
  3. R

    Android Question Why File.CopyAsync fails in debug mode but runs fine in release mode?

    Sub GetStringFromFile(strFile As String) As ResumableSub Dim lBytes As Long Dim strResult As String If File.Exists(File.DirInternal, strFile) = False Then Wait For (File.CopyAsync(File.DirAssets, strFile, File.DirInternal, strFile)) Complete (bSuccess As Boolean)...
  4. red30

    iOS Question Send file to Telegram

    On the forum, I found an example of sending a file to telegram via B4J. It is also suitable via B4A. But I can't use this example to send a file via B4I because the library iRandomAccessFile doesn't support CountingInputStream. In general, this example is necessary for uploading files with...
  5. M

    Android Question Save Map with custom Type to file

    Hello everyone. I've a Map, that will be saved using File.WriteMap Dim m1 As Map = CreateMap("Version": AppVersion, _ "Thing1": -1, _ "Thing2": "", _ "Thing3": "", _...
  6. B

    Android Question ultimatewebview downloading error

    Respected Sir Happy Evening i am doing student internship, i am converting web application to android webview application. downloaded b4a downloaded example file "" from "" and in that "txtUrl.Text"...
  7. M

    Android Question [B4XPages] Upload files with WebView

    Hi everyone, In my project I have a WebView that loads a webpage that has a "Choose File" button. I took a look in the forum and i found this post: Upload files with WebView However... the attached project works, but it's not b4xpages... As soon as i take the code (and the manifest too) to put...
  8. red30

    iOS Question Storing files in DirLibrary?

    I am using DirLibrary to store files. Periodically, I add new files and delite out obsolete files, but I noticed that in the settings, if you look at the size of the occupied data, they change with some delay. That is, if I add something, then I will see the increased size only after a while...
  9. C

    Android Question Can I modify a custom type, while it's already used in a database list?

    I'm using a custom type that consists of keys like title, text, datetime, keywords etc. My simple "database" is just a list of hundreds of these. The problem is that as for now I'm using their Unix times to identify them, and that was a big mistake, as due to how the app works there will be...
  10. C

    Android Question Should I replace File.DirRootExternal?

    In my private (not publishing to Play Store and using on my private Android 10 device) phone I've made myself an app that saves its' backups in storage/emulated (File.DirRootExternal), I've implemented permission checking and everything works well. I really prefer to have it over there as it's...
  11. rtek1000

    B4J Question [XLUtils] How to create MS Excel documents?

    Hi, I found this library, very useful, but I couldn't find how to create the file. There is a post related to how to create Word documents: Lib...
  12. carlos7000

    Android Question Copy file from uri [SOLVED]

    Hello. I am trying to create an application, which through the share menu, receives a uri of a file, then the application copies it to a "safe" directory I already managed to receive the Uri correctly. I also managed to correctly extract the path of the file, from the uri But the copy...
  13. M

    Android Question Download and save the file

    Hi I'm trying to save the downloaded file with this code: Sub DownloadAndSaveFile (Link As String) Dim j As HttpJob j.Initialize("", Me) j.Download(Link) Wait For (j) JobDone(j As HttpJob) If j.Success = True Then Dim out As OutputStream =...
  14. KMatle

    B4R Tutorial ESP32: Download huge file from a server and save it

    This example downloads a file from a server folder (here I use a folder in htdocs on my apache server) and saves it to a file on the file system. Tested with 700KB files. Set headers (browse the www how to set up headers or credentials). Note that the ESP32 filesystem is quite slow. Downloading...
  15. M

    iOS Question Create "public" folder in iOS

    Hi Erel, How can I create with B4i a "public" directory / folder? I would like to access it with my developed app and in this folder I would like to edit normal with the "normal" file-explorer. It is in B4A "File.DirRootExternal" ... and in B4i ?? I do not want to access the folder via iTunes...
  16. M

    iOS Question [B4X] Upload/Download files Google Drive or other cloud

    Hi everyone, Is it possibile with B4X (iOS and Android), to upload and download files with google drive? Is not mandatory google drive, also another cloud. Thanks in advance.
  17. M

    Android Question Downlod file from server and save it

    I have a large file to download. To do this i use LargeFileDownload( example. How can i save file?
  18. B

    Android Question Play file via network

    Hi everyone, i need to play some file (*.mp3/*.mp4) via network, and i found this thread: where @Erel suggest to download the file with SMB and then play with MediaPlayer; but the thread...
  19. amorosik

    Italian [B4A] Scrivere dati in locale - che sistema usare?

    Programma su Android per tracciare percorso bici col gps del telefono Normalmente salvo su file di testo nella memoria esterna Una roba del tipo Dim rp As RuntimePermissions Dim LogDir As String=rp.GetSafeDirDefaultExternal("App_Bici") Dim nome_file As String="file_log.txt" Dim Writer As...
  20. rleiman

    Android Question Getting the uri of a file in the app's assets folder

    Greetings, I would like to get the uri of a file that resides in my app's assets folder. Can you point me to a link that describes how it's done? I saw many posts on the forum that shows code like this but none of the posts actually shows the coding behind GetFileUri sub routine...