Link to home
Start Free TrialLog in
Avatar of crxlinks

asked on

Mirroring a cold-fusion picture fetching app. w/out using cold fusion server?

Here's the story.

We have a cold fusion server running a digital picture project for all of the property in Oakland County Michigan. When completed, it will have nearly half a million images in the database, broken down by C.V.T. - (City Village or Township).

Currently, as a "live" project, a list of links can be generated to d/load as a .csv file for importing/linking to our GIS Base map. The url structure is as follows:
            (dummy url, but the path structure is what currently exists)

where CVT_CD is equal to the 2 digit alpha-numeric code for that particular city, village or township. the Pin is a unique parcel identification number for that particular property. Executing this link instructs the cold fusion server to fetch the image, and create a new page with the picture centered, and some tabular information from our land records database.

Now for the question: We'd like to be able to effectively mirror this set up for a particular cvt (without running a webserver/cold fusion server) for purposes of putting it on a local hard-drive (on a laptop)  for demonstration purposes.

I've been able to mimic the idea manually with about a dozen or so properties by simply executing the url and saving the resultant
html/images as individual files - this is fine for a couple of dozen, and/or a proof of concept - but the hope is to replicate an entire small village (2,500 records or more).

I've looked into a couple of the offline browsers like Anawave's websnake, WebStripper, HTTrack, etc. - and none seem to allow the importation of a list of urls en masse via a text file...

Anyone know how to do this in cold fusion, or have a better suggestion for an offline browser that would be able to capture these individual pages? (I know nothing about cold fusion, and one of our contractors who has since taken another job, set up the original web app.)

Oh, and I also do not have access to the cold fusion ap/server - if this is a CF solution, then I'd be passing the tips along to our IT staff - who are just now taking getting into C/F development...


Avatar of paulkd

My guess is JavaScript.
Avatar of Dain_Anderson

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops, the last line should read </CFLOOP>
Avatar of crxlinks


Answer accepted
*shrug*  Sounds good to me - the actual binary .jpgs are stored with a file structure of the pin number_photo number so, for example:

2501101001_1.jpg - this allows for multiple views, and/or multiple buildings to be photographed on a single parcel.  There is actually a separate CF App, that is linked to an FTP server that strips the images off the disc, allows the picture loader to see thumbnails, and then type in the PIN for the photograph - we're using Sony Digital Mavicas that take apprx 30 images per dis at 640X480... long run we're looking at possibly a terrabyte of storage space - especially when considering the GIS Base map, and a county wide Digital Orthographic overhead photograph that represents 6" pixels on the ground rectified to GPS coordinates...

I haven't done any serious programming in quite some time, but what you've suggested appears to be do-able by out IT staff.

I'm guessing the RESOLVEURL="Yes"  statement resolves the URL so that it's not server specific - I mean, that it uses the relative path, and strips out the bulk of the url and leaves "...\digipics\images\" or something similar?

At any rate, I appreciate the rapid response, I'll save this file, and give it to our IT folks.