Forums / Developer / Creating a Simple Content Object via PHP / Comment38785
Dave Dykshoorn
Monday 22 September 2003 9:01:35 am
wenyue, (or whoever else knows), you mentioned that storing binary files need to store information in other tables. Can you expand on this a little. For instance say I have a file called test.pdf that I want to store with my content. Its located in C:\temp (or even better, as a blob in another mysql db table) how would I do this, using your sample code?
$contentObjectAttributes[0]->setAttribute( 'binaryfile', $attributeValue );$contentObjectAttributes[0]->store();
Thanks in advance,
Dave