Can App Inventor convert Image to Byte Array

387 views
Skip to first unread message

Devan Spence

unread,
Apr 4, 2016, 12:19:37 PM4/4/16
to MIT App Inventor Forum
I'm working with an API linked to web service and they require a byte array for all images being uploaded to their servers via POST.  Is there a way to convert images to byte arrays using App Inventor or a service/activity accessible in App Inventor?  Any help or input would be a huge help.

Taifun

unread,
Apr 4, 2016, 12:24:49 PM4/4/16
to MIT App Inventor Forum
there is no such block available in MIT App Inventor
is there any documentation about that API? can you provide a link?

you probably could write your own extension and create a block yourself...

more information about how to create an extension see here https://groups.google.com/d/msg/mitappinventortest/Ip2AX036d0U/5NJlAEbFCgAJ
however that will be more advanced and will require some Java skills...

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 


Devan Spence

unread,
Apr 4, 2016, 12:41:10 PM4/4/16
to MIT App Inventor Forum
Here is a link to the API documentation:

I'm working under the MethodAPIUpdateFile section.

I assumed it would take a custom extension but I wanted to double check first.

Hossein Amerkashi

unread,
Apr 4, 2016, 12:48:54 PM4/4/16
to MIT App Inventor Forum
One thing to consider is that Images could be large files and it may impact app performance.




Hossein Amerkashi http://Amerkashi.Wordpress.com   | http://AppyBuilder.com 


 

   


   



 

Devan Spence

unread,
Apr 4, 2016, 12:51:28 PM4/4/16
to MIT App Inventor Forum
I agree.  I'm not a fan of their requirement for byte arrays.
Reply all
Reply to author
Forward
0 new messages