Good day, SO.
Using Trigger.IO's javascript SDK, is it possible to create a Forge File
object from Base64 data suitable for passing to Forge's forge.request.ajax
method?
I am attempting to upload an image to a server that requires submission in the form of an oldschool multipart/form-data
request (can't be changed, unfortunately) from my TriggerIO mobile app. The image comes from canvas.toDataURL()
in Base64 format.
Android 2.2 lacks both FormData
, BlobBuilder
and typed arrays -- making this exercise difficult via XMLHttpRequest
(though I have it working well on all other modern platforms). I'm wondering if I might be able to get some joy using Trigger IO's Forge's forge.request.ajax
?
Per @James Brady's comment, this cannot be done as of the current version (v1.4).
" The File object has to come from the native side originally "