![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've set up a db to work w a colleague who's based remotely so he can contribute to the shared task of inputting data. Part of the useful data are pictures. IWP doesn't allow the insertion of pictures into the db via the browser Would it be possible to do the following by way of a workaround to this limitation ? Set up a password protected web site with a very simple file upload form using mysql/php to allow someone to upload a picture along w an id number related to an entry in the main db Create an ODBC source based on the mysql db and create an FM file on my system derived from it Add this new file as a file referenced by the main db Create script to regularly update the new file Create relationship between the main db and the new file based for example on an id number IWP should then show pictures inserted by someone using the main db from a remote site Marmot ps this may be bunkum: it's just an idea |
#3
| |||
| |||
|
|
I think the usual way to view pictures in a data base is not to insert them in it, but to insert the "reference" (ie the path) to its file, while actual pictures are in a separate folder - one file per picture -. The way I do it is to have a separate 'Images.fp7' table - maybe a separate file would even be better, as it would then be independant to the actual DB -. And say, for the sake of example, that the pictures are photos of persons, and it exists in the DB a 'Persons' table with one record per person identified by a unique 'PersonID', eg '12345' for a given person. Then the photo's file name of that person would be '12345.jpg'. The relationships with any table is then straightforward. In FMP6, I often used - when there were several thousands images to handle - the 'Troi File' plugin at www.troi.com which has a free trial that has a lot of excellent examples of what could be done, and the scripts can be used almost 'as is'. Now for the 'remote' question with a single person, I'd use the usual tools as 'pcAnywhere' or 'Timbuktu', or even a simple 'ftp' program such as 'FileZilla'. Remi-Noel "marmot" <thdyoung (AT) mac (DOT) com> a écrit dans le message de news: 1168814233.634223.298880 (AT) 38g200...oglegroups.com... I've set up a db to work w a colleague who's based remotely so he can contribute to the shared task of inputting data. Part of the useful data are pictures. IWP doesn't allow the insertion of pictures into the db via the browser Would it be possible to do the following by way of a workaround to this limitation ? Set up a password protected web site with a very simple file upload form using mysql/php to allow someone to upload a picture along w an id number related to an entry in the main db Create an ODBC source based on the mysql db and create an FM file on my system derived from it Add this new file as a file referenced by the main db Create script to regularly update the new file Create relationship between the main db and the new file based for example on an id number IWP should then show pictures inserted by someone using the main db from a remote site Marmot ps this may be bunkum: it's just an idea |
#4
| |||
| |||
|
|
I think the usual way to view pictures in a data base is not to insert them in it, but to insert the "reference" (ie the path) to its file, while actual pictures are in a separate folder - one file per picture -. The way I do it is to have a separate 'Images.fp7' table - maybe a separate file would even be better, as it would then be independant to the actual DB -. And say, for the sake of example, that the pictures are photos of persons, and it exists in the DB a 'Persons' table with one record per person identified by a unique 'PersonID', eg '12345' for a given person. Then the photo's file name of that person would be '12345.jpg'. The relationships with any table is then straightforward. In FMP6, I often used - when there were several thousands images to handle - the 'Troi File' plugin at www.troi.com which has a free trial that has a lot of excellent examples of what could be done, and the scripts can be used almost 'as is'. Now for the 'remote' question with a single person, I'd use the usual tools as 'pcAnywhere' or 'Timbuktu', or even a simple 'ftp' program such as 'FileZilla'. Remi-Noel "marmot" <thdyoung (AT) mac (DOT) com> a écrit dans le message de news: 1168814233.634223.298880 (AT) 38g200...oglegroups.com... I've set up a db to work w a colleague who's based remotely so he can contribute to the shared task of inputting data. Part of the useful data are pictures. IWP doesn't allow the insertion of pictures into the db via the browser Would it be possible to do the following by way of a workaround to this limitation ? Set up a password protected web site with a very simple file upload form using mysql/php to allow someone to upload a picture along w an id number related to an entry in the main db Create an ODBC source based on the mysql db and create an FM file on my system derived from it Add this new file as a file referenced by the main db Create script to regularly update the new file Create relationship between the main db and the new file based for example on an id number IWP should then show pictures inserted by someone using the main db from a remote site Marmot ps this may be bunkum: it's just an idea |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
You could certainly from iwp open a php page that allows them to upload the image files. Here is the link to an article and sample files to help you out. http://www.fmwebschool.com/resources/upload.zip In Kindness Stephen Knight |
![]() |
| Thread Tools | |
| Display Modes | |
| |