Share » Forums » Developer » Import Binary Files

Import Binary Files

Import Binary Files

Monday 18 August 2008 7:14:15 am - 3 replies

Author Message

Gabriel Finkelstein

Tuesday 19 August 2008 10:57:49 am

Is your file attribute called "binary" or "file"?

Take a look at these extensions, maybe they help.
http://ez.no/developer/contribs/import_export/xmlimport
http://zev.ez.no/svn/extensions/csv/trunk/

Oliver Schrenk

Tuesday 19 August 2008 12:51:36 pm

The attribute is "file". Thanks for the link. The xml import contribution almost answers all my questions.

The API is weird. Why is there a helper function to initialize images but not for files?

Gabriel Finkelstein

Tuesday 19 August 2008 3:02:03 pm

In this line you use "binary". I suppose it should be "file".

$fileContent =& $dataMap['binary']->attribute( 'content' );

But still, I guess it won't work since, as you say, there's no such method as initializeFromFile.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu