AnsweredAssumed Answered

Import images into FM from an xml http data source

Question asked by stewieK on Oct 5, 2009
Latest reply on Mar 31, 2010 by stewieK

Title

Import images into FM from an xml http data source

Post

Long story short I have mainly textual data stored on a server in a mysql data base and I want to import it into FM.

 

So I pull the data from the DB and with PHP I create an FM friendly XML file,

which is then pulled into FM via an HTTP import...

Cool, easy... still with me?... good.

 

The trick is I have a few images and pdf files that I need to import into the record at the same time as the rest of the data.

They are stored in a directory on the server seperate to the textual data, but the file reference (URI) is in the XML record i'm sending down.

 

Now I would have thought that if I gave the container field, in FM, the file reference to the image I want it to download, during the import,

it would be smart enough to go ahead and do so... apparently not.

And now Im not sure what angle to attack this from.

 

If anyone has any experience with this kind of thing, I would greatly appreciate the help.

 

My Background: junior - intermediate php/xml/web developer.

This is my first major FM project.

Outcomes