yes it will be an Android device.
Hi Juan,
we have methods to send text in bluetooth, Iām trying to convert image and document to text and then send it to other device.
@ChrisWard , @Juan_Antonio ,@TIMAI2 - This is the requirement that I got, to be implemented :
- Develop a Bluetooth based document and image file transfer app like AirDrop.
- Develop a Bluetooth base document file and image transfer app enabled with encryption.
With the source and target devices being android, you should have everything you need?
AS we dont have methods to send files in bluetooth component ,I thought of converting the files using KIO4_File2String ,KIO4_Base641 but these components are returning āFile not foundā when I pass the Result.uri of activityStarter.
Both devices must have an app made with App Inventor and Bluetooth?
Its upto me how I develop it. They didnāt specify it, until I am able to send the file from one device to other.Whether I use one app or two apps its upto me.
But did you try what I suggested: converting the content uri to a file path and ensuring the result was suitable for input to the base64 block ? (see above)
I tried doing it but not sure if I did it correct or not. I passed the Result.Uri for filename.
Try first convert a small image file (~ 2KB) in the assets to String.
FileToString
fileName = //myimage.png
GotString
string
Use this version:
http://kio4.com/appinventor/277_extension_imagen_string.htm
okay Juan. Ill try and get back to you.
Hi Juan, It worked if I did it with a file from assets.I was able to see the converted string of the jpg file.
Firstly, sorry I pointed you at the wrong block! It should be this one:
Secondly, using GET_CONTENT does not return a good file path in the same way that using PICK does for images. You may need to build your own file picker using the File extension.
Send that String by Bluetooth to other device, then this device convert string to image file.
For now, test code snippets as separate mini projects to prove feasibility.
After that, design the GUIs of Send and Receive Apps on paper, with a list of requirements. Do not try to reinvent the world!
If you decide that one of the Apps needs more than one screen, use Virtual Screens. Screen1 is the ārealā Screen and device-sized Vertical Arrangements on it are displayed/hidden as required - they are your Virtual screens.
Backup your work to your PC frequently
https://www.professorcad.co.uk/appinventortips#TipsGui GUI Layout
https://www.professorcad.co.uk/appinventortips#TipsImages Images
https://www.professorcad.co.uk/appinventortips#TipsApk Cannot Build/Install/Run APK
https://www.professorcad.co.uk/appinventortips#TipsBluetooth Bluetooth
You can raise a new Forum Topic if you get stuck with some detail or other, but itās your homework and up to you to do the thinking now If you do raise a Topic, make sure it is well defined from the start!
Hi Good evening I am interested in understanding how I can transfer binary files with this method to an iot card. Thanks in advance, if you can help me you would be doing me a huge favor.