I have a whole series of apps that work together with web-based server code to carry out a suite of business and engineering functions. You can see them at UtilityInField.com.
Some of these apps have now been rewritten in Objective-C (Swift coming soon) but every one of them started out as a Codea app. I still use Codea to prototype each app because I have frameworks (based off the ancient Cider library) that let me throw idea together quickly, I can make fast changes in the field, and Codea is just such a joy to use. Building an app in XCode with its million moving parts never stops feeling like work. Prototyping in Codea … that’s the best kind of play.
So now, the question: Is there a good way to send an image in Codea? I don’t care where it goes. I’ve tried writing a service to catch it, but a normal json or SOAP API means converting the image to a string, and that alone takes too long to be practical. The image save to Dropbox would be fine, because I could just drop the file name to my own API to let it know where to find the image. But it seems to not sync until the image control is opened outside the app.
Ultimately this app (a new version of a safety checklist app) will be in swift, and I’ll be dropping the images on a secure site with a link stored in the database. But right now, I don’t care where or how the prototype stores an image, just that it does it quickly and cleanly within the app.
So … what’s the best solution? Thanks. (Note: I’m not asking about getting an image. Good old HTTP request does that all day. Just the best way to upload.)