can't open file
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
can't open file
The picture file that I am trying to open is:
bindle:/var/mobile/Containers/Data/Application/F90CF0F6-XXX-XXX-XXX-XXXXXXXXX/Documents/165.jpg
The real is " Can't open file.
Thank you
Ty
bindle:/var/mobile/Containers/Data/Application/F90CF0F6-XXX-XXX-XXX-XXXXXXXXX/Documents/165.jpg
The real is " Can't open file.
Thank you
Ty
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: can't open file
Hi.
Um, er, how did you try to open that file?
Craig
Um, er, how did you try to open that file?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: can't open file
Hi Ty
Is your file is in document folder of your app ?
If that is the case your may use this
Best regards
Jean-Marc
Is your file is in document folder of your app ?
If that is the case your may use this
Code: Select all
put specialfolderpath("documents") into tFolDoc
put tFolDoc & "/" & "165.jpg" into tFile
set the filename of img "myImage" to tFile
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: can't open file
I was really asking if you, say, used the "open file" command, or something else.
Craig
Craig
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: can't open file
I'm trying to retrieve a picture using the file path/picture name and place it onto a card. That's when I get the error can't open image.
Thank you for your help.
Ty
Thank you for your help.
Ty
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: can't open file
How about checking if the image file is not damaged.
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: can't open file
The pictures do not appear to be damaged.
Re: can't open file
I think what others quite rightly asked is to show the code you used. Otherwise it's not possible to know what went wrong...tyarmsteadBUSuSfT wrote: ↑Tue Jun 07, 2022 2:21 pmI'm trying to retrieve a picture using the file path/picture name and place it onto a card. That's when I get the error can't open image.
Thank you for your help.
Ty
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: can't open file
What Stam said, as I did. How did you try to retrieve that file? In other words what code did you write?
Craig
Craig
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: can't open file
We do need to see the code, but I see a couple of things wrong.tyarmsteadBUSuSfT wrote: ↑Mon Jun 06, 2022 10:06 pmThe picture file that I am trying to open is:
bindle:/var/mobile/Containers/Data/Application/F90CF0F6-XXX-XXX-XXX-XXXXXXXXX/Documents/165.jpg
The real is " Can't open file.
- " bindle" should be "binfile".
- The documents folder should use specialFolderPath("documents")
- Finally, LC can't just open an image automatically, but you can get the raw imageData or you can put the image into an image control.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 151
- Joined: Sat Aug 25, 2012 1:14 am
Re: can't open file
Got it, thank you
Ty
Ty