PickPhoto into database
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 80
- Joined: Fri Jul 09, 2010 6:28 pm
PickPhoto into database
If I use mobilePickPhoto "library" to get a pointer to an image in the iphone/ipad library (or indeed take a photo with the camera), how do I get to the actual image such that I can save, (a thumbnail of it), out to my documents folder?
I get as far as "the name of the last image" which yield the stack reference to it, but where is the actual image?
thanks
Steve
I get as far as "the name of the last image" which yield the stack reference to it, but where is the actual image?
thanks
Steve
Re: PickPhoto into database
Did you read the release notes? For the photo picker command, it says: "...a new image object will be created on the current card of the default stack..."
So the image is on the current card.
Gerry
So the image is on the current card.
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- Posts: 80
- Joined: Fri Jul 09, 2010 6:28 pm
Re: PickPhoto into database
Yes I did!
But, I don't get how to save that image out to a file in the 'documents' folder.
Steve
But, I don't get how to save that image out to a file in the 'documents' folder.
Steve
Re: PickPhoto into database
This works on the desktop - I think it'll work on iOS:SteveHanlan wrote:I don't get how to save that image out to a file in the 'documents' folder.
Code: Select all
set the defaultFolder to specialFolderPath("Documents")
put image "test" into URL (("binfile:"&test&".jpg"))
Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: PickPhoto into database
Hi guys,
I heard that some user have problems setting the default folder on iOS.
So it is a better idea to supply the complete filepath:
...
put image "test" into URL ("binfile:" & specialfolderpath("documents") & "/name of image here.jpg")
...
Best
Klaus
I heard that some user have problems setting the default folder on iOS.
So it is a better idea to supply the complete filepath:
...
put image "test" into URL ("binfile:" & specialfolderpath("documents") & "/name of image here.jpg")
...
Best
Klaus
-
- Posts: 80
- Joined: Fri Jul 09, 2010 6:28 pm
Re: PickPhoto into database
Gerry - That worked. It was the 'binfile' that I missed - Doh!
Klaus - Good advice
Thanks to all
Steve
Klaus - Good advice
Thanks to all
Steve