toBlob not supported on Android...

You must Login before you can answer or comment on any questions.

Hi, I'm finding more and more functions not being supported on Android, it really bugs me, everything in my app fine on iOS - put on Android, then a lot of functions not supported?!

For instance:

tableview.addEventListener('click', function(e)
                {
 
                    apiData.selectedImage = e.rowData.imageURL;
                    var im = e.source.toBlob();
                    apiData.selectedImage = im;   // get image selected
                });
Wanting to use e.source.toBlob when clicking on a row in a table-view, but on Android I get this isn't supported? If I use toImage, a function I'm using later is expecting a blob so that doesn't work. Is there a workaround around this?

Thanks

— asked 8 months ago by steve green
2 Comments
  • When posting a question like this it is essential that you post all pertinent information. The details about your environment as well as the actual error output are necessary in tracking down your problem. If you have any questions about what that info is, please refer to the Ask A Question page.

    The reason that info is necessary is because Android supports toBlog(). I assume that you've clicked on an image in the tableview and that is what you are trying to get the blob of yes? Because looking at this, it looks like you're trying to blob out an entire table.

    — commented 8 months ago by Anthony Decena

  • Yes, just want the blob of the image you have clicked on in a table. This works great on iOS, the e.source is in fact a TiUIImageView (the one in the row you clicked on), not the entire table, I just want this converted to a blob, each time I use the toBlob on this, I get an alert that shows it is not supported/undefined when running on Android device? If I use toImage, the image you clicked on when then displaying on another screen inside a ImageView, its much smaller - not the case when using toBlob.

    Thanks for your help,

    Regards, Steve

    — commented 8 months ago by steve green

Your Answer

Think you can help? Login to answer this question!