Hi Jeff - off on a tangent there
If you are going to document file handling, Media and Non Media, that would be great. I suggest you read @Anke Guide on the subject and get her permission to publish her chart - a picture paints a thousand words, it makes the subject of Android files much easier to understand.
The CloudDB documentation certainly needs instructions for use with image files. If anyone at MIT has the time, it would be even better if CloudDB could be enhanced with dedicated Blocks for uploading/downloading image files. This would make it easier to understand.
From an Android point of view there are an β Internal Storage and an β External Storage .
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
/data/data/<packageName>/
In order to be able to debug your app, AI2 saves the assets for β Companion on devices with
Android β₯ 10 (API β₯ 29):
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/
Android < 10 :
/storage/emulated/0/Android/data/edu.mitβ¦
1 Like
TIMAI2
August 28, 2022, 3:05pm
22
@jis See here from 1 month ago( I did tag you in the topic below):
Hi, I'm trying to make a messaging app (just for fun) that can send both messages and images across multiple devices. I got the messages part figured out, but I can't figure out how to send images through it. what I want to happen is for me to open the imagepicker, select an image, and be able to send it through Clouddb to the other device. Here's what I have so far...
[pic]
jis
August 28, 2022, 8:52pm
23
I say again, you should never need to create AppInventorBinaries. The system (App Inventor) should take care of it for you.
Looks like it doesn't always happen, and that is a bug, which I am now in the process of tracking down.
-Jeff
jis
August 28, 2022, 9:57pm
24
So the fact that we don't create AppInventorBinaries is in fact a regression. I have submitted a pull request with the fix.
5 Likes
Is there anyone who have aia file(full project) for uploading any image to google drive or any other cloud? help me........
TIMAI2
September 9, 2022, 8:14am
26
This topic shows how to upload an image to cloudDB
To upload any image to google drive:
Now updated with Juan's latest version of the extension, in order to handle file locations with Android >= 10. The blocks required some changes in order to test for the Android version, and set the blocks accordingly. Also included another test...
1 Like
Thanks,....I'll try to do itβΊ
And is there any way to save files in the cloud from the device but first need to capture that picture from the app camera
TIMAI2
September 9, 2022, 12:18pm
29
Yes, use the image block from the camera's picture taken event. You may also want to resize the image before uploading.
@Muhammad_Usama if You want You can try FileStack extension to upload, download, delete, overwrite images or other files.
Hi all,
in a my recent project I had the need to upload images on the web and then download or delete. I looked for this and at the end I decided to use Filestack. (www.filestack.com )
To use Filestack first of all You have to register an account, and the system give You an API key, with this API Key You can upload and download files (I tried only image files).
To Overwrite or Delete files You have to activate on Filestack "Use Security" you find this under Security/Policy & Signature, after β¦
1 Like
How to set path and handle them when initializing them??
More explanation here please Muhammad -which solution you are referring to?
Hi @Muhammad_Usama , i think you are speaking about filestack extension. Read the post about the filestack extension, you find how to set the handle, and you can try the sample project to see how i set path and handle.
Best regards
Marco
Thanks everyone to solve my problem
Before you commit to filestack, check out their prices:
SteveJG
Split this topic
February 14, 2023, 3:32pm
36
3 posts were merged into an existing topic: image to cloud then display
system
Closed
February 21, 2023, 3:33pm
37
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.