Okay, great suggestion, thanks. Question... For our app we will never want an image any larger than something like 1280 x 1024. So is it safe to use DATA_URL if we are requesting height and width of something like 1024 x 768? I did see some out of memory errors in BlackBerry but using height and width of 1024 x 768 seemed to resolve that. So my questions are:
1) Do you think it is safe to use DATA_URL if we always pass a height and width no more than 1280 x 768?
2) If we use File URI how can we scale the image down before uploading it to a web server? We certainly don't want to send the whole image to a web server and scale it server side, simply because it would mean a huge upload that would take a long time and be prone to failures. We could use something like Pixastic and shrink the image using HTML5 canvas, but it does not work on BlackBerry OS5 (or 6, I think). We are really targeting only iOS, Android, BB, and WP7.
Many thanks in advance!