Page 1 of 1
can't open file
Posted: Mon Jun 06, 2022 10:06 pm
by tyarmsteadBUSuSfT
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
Re: can't open file
Posted: Tue Jun 07, 2022 3:02 am
by dunbarx
Hi.
Um, er, how did you try to open that file?
Craig
Re: can't open file
Posted: Tue Jun 07, 2022 12:15 pm
by jmburnod
Hi Ty
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
Best regards
Jean-Marc
Re: can't open file
Posted: Tue Jun 07, 2022 1:43 pm
by dunbarx
I was really asking if you, say, used the "open file" command, or something else.
Craig
Re: can't open file
Posted: Tue Jun 07, 2022 2:21 pm
by tyarmsteadBUSuSfT
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
Re: can't open file
Posted: Tue Jun 07, 2022 4:26 pm
by richmond62
How about checking if the image file is not damaged.
Re: can't open file
Posted: Tue Jun 07, 2022 5:13 pm
by tyarmsteadBUSuSfT
The pictures do not appear to be damaged.
Re: can't open file
Posted: Tue Jun 07, 2022 5:31 pm
by stam
tyarmsteadBUSuSfT wrote: ↑Tue Jun 07, 2022 2:21 pm
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
I think what others quite rightly asked is to show the code you used. Otherwise it's not possible to know what went wrong...
Re: can't open file
Posted: Tue Jun 07, 2022 5:59 pm
by dunbarx
What Stam said, as I did. How did you try to retrieve that file? In other words what code did you write?
Craig
Re: can't open file
Posted: Tue Jun 07, 2022 6:33 pm
by richmond62
Re: can't open file
Posted: Tue Jun 07, 2022 6:34 pm
by jacque
tyarmsteadBUSuSfT wrote: ↑Mon Jun 06, 2022 10:06 pm
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.
We do need to see the code, but I see a couple of things wrong.
- " 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.
The last item is why we need to see the script.
Re: can't open file
Posted: Wed Jul 06, 2022 10:55 pm
by tyarmsteadBUSuSfT
Got it, thank you
Ty