On some of my images, when I try to use the Media_GetImageInfo function, I get an error stating that the referenced image cannot be found. Why?
You may be running into a bug in FileMaker Pro. Did you use FMP’s Import Records>Folder function to insert the pictures? When FMP imports a folder of pictures, it uses an incorrect file path notation, which then prevents MediaManager from returning the image information. There is a workaround you can use, however, for these images. Create a script that sets the following calculation into the container field holding the imported image (where myTable::Container is the name of the container): Substitute ( GetAsText (myTable::Container) ; “image:” ; Case ( Get ( SystemPlatform ) = -1 ; “imagemac:” ; “imagewin:” )) This calculation basically grabs the file path for the image in the container, fixes the format, and then with your Set Field step you are setting the corrected file path back into the container field. You shouldn’t see any change in the displayed image, but the file path format will now be correct and you can then use Media_GetImageInfo without a problem.
Related Questions
- When I try to install TSC - Loan Calculation Software, I get an error message stating that the setup file is corrupt, How do I install TSC - Loan Calculation Software?
- On some of my images, when I try to use the Media_GetImageInfo function, I get an error stating that the referenced image cannot be found. Why?
- When I try to Order online, I recieve an Error Message stating that my address is invalid. Why?