fiwareapp-inventorfiware-orionfiware-wirecloud

Send image via post from App Inventor to Orion


I'm trying to send a picture via POST to orion after captured using camera, but I'm suffering with the lack of information about how could I do that using App Inventor.

Anyone knows how to send it via webservice to Orion or even to MongoDb?

Thanks so much for your help.


Solution

  • Use the web component and its PostFile method, see also the documentation. Then follow their API documentation (my guess is, there is an API documentation available?) and put together the Url and RequestHeaders, see also my Dropbox example and How to use the PostFile block in App Inventor.

    A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks. There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
    How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

    Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor