Hello, I'm trying to build an app where the user can browse the file manager and send any file (formats CSV and GPX) through bluetooth, to another device (esp32).
Here's what I think I should do:
- allow the user to access the file manager and select the file (Blocks attached)
- read the file's data and convert it to the desired string
- send the string through bluetooth and process it on the other device
I'm currently stuck on part 2 (read file's data), as I've not found a way yet to view the file that has been selected from the file manager. Everything I've found on the web refers to reading file data from a specific file that has been uploaded as media to the app inventor. In my case, I'd like to access the data of the file that the user selects (browses from the file manager).
How can I do it (if it's possible)? for the CSV format, for instance.
Any help would be greatly appreciated. Thank you for your time!