1

I know how to take a picture and upload it with flex mobile, but i have seen that the Dropbox app automatically uploads the photo that you take using the default camera app.

can this be made in flex mobile or how does Dropbox do it?

1 Answers1

1

Maybe you can do it by using the Camera ANE by distriqt

You get the picture as BitmapData and then upload it by using URLRequest or URLStream.

Also you can try FileReference for uploading.

Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
  • but you have to enter the app that you made and then take a picture? or can you use the default camera app and detect it and upload the picture that they took? – user2784592 Sep 17 '13 at 16:18
  • You'll probably need to run a background process to do this if you want it to run while your application doesn't have focus. You can look into background execution in AIR see if that does it for you otherwise you'll have to look into native code (most likely an ANE). – Michael Sep 24 '13 at 02:15