bushidobro Posted November 6, 2017 Posted November 6, 2017 Hi, new to supercontainer. I have a dataset with over a 100,000 images in a Filemaker container (v16 on FMServer). I am trying to find a method that allows an individual to download images from a found set all at once. I've been able to get a script working within Webdirect but it seems to require selecting a button to download images one at a time which is not convenient to say the least if you have 100 or so in a found set. Does supercontainer allow this sort of download? Thanks.
Mike Duncan Posted November 6, 2017 Posted November 6, 2017 If you have Webdirect running, you might also be able to host a PHP file and have it do some work as well. I have some sample files that show how to zip container data and serve it to the end user as one file. You can download the sample from my github repo here: https://github.com/SoliantMike/FM-WebDirect_Zip Mike
bushidobro Posted November 6, 2017 Author Posted November 6, 2017 Hi Mike, thanks very much. I'll give this a look.
ryan360Works Posted November 6, 2017 Posted November 6, 2017 Hi bushidobro, While you could def do this with SuperContainer companion plugin, it would definitely take some set up as there is no functionality that would do this explicitly. The images would have to be hosted by SuperContainer first then have some kind of field for the record that uniquely identifies the image so that when you looped through the records you could change the URL where the image was hosted so SuperContainer would know what to download. For instance say you have a found set of 5 images with identifying values of 1-5 (super simple). To set this up you would upload those 5 images at http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/1, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/2, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/3, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/4, http://SERVERIPORHOSTNAME/SuperContainer/Files/Images/5. In your script your loop would iterate through the found set and call the function SCDownload ("/Images/"&Images::ImageIdentifier; "LOCATIONWHEREYOUWANTTOSAVE") for each record in the found set. Since you have 100,000 images, I would also recommend setting of a script that will automate the upload for you as well. The function SCSetContainer uploads a file from a container field to the specified URL on SuperContainer. Hope that helps!
Recommended Posts
This topic is 2928 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now