Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Get full image path of an image inside the phonegallery

I want to get the full image path of the image stored in the PhotoGallery inside the iphone.How to get it?
I used the image.nativePath But it's not working..
Please Help
Thanks.

— asked November 5th 2010 by Jacob John
  • iphone
5 Comments
  • A lot of people seem to be having this problem. I can only offer guesses, I'm afraid.

    What do you get when you output the value of event.media like this Ti.API.info('event.media: '+event.media) when you run the KitchenSink script, email_dialog.js ?

    — commented November 5th 2010 by Paul Dowsett
  • Its coming as [object TiBlob] can we get something out of this.

    — commented November 5th 2010 by Jacob John
  • why do you need the image path? you have the image blob…

    — commented November 5th 2010 by Aaron Saunders
  • I've not dealt with the PhotoGallery, but the paths to its image files seems like a reasonable request. Would you explain your situation Jacob, so that we can discuss alternative (possibly better) approaches?

    — commented November 7th 2010 by Paul Dowsett
  • I may not have been clear - please explain what you are trying to achieve.

    Thanks

    Hal

    — commented November 7th 2010 by Paul Dowsett

1 Answer

  • it cannot be done.

    if you look at the code in the mediaModule you will see that the information related to the filePath is never returned on the object provided in the callback

    — answered November 7th 2010 by Aaron Saunders
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.