Difference between revisions of "Binary File Handling"

From SmartWiki
Jump to: navigation, search
(See Also)
Line 1: Line 1:
Export File field using Report XML export
+
==Export a File field using Report XML export==
  
Put < !--FileExportBinary --> inside details box of custom export template
+
Put ''<nowiki><!--FileExportBinary--></nowiki>'' inside details box of [[Custom Export]] template
 
<br>
 
<br>
 
[[File:Xmlexport.jpg]]
 
[[File:Xmlexport.jpg]]
Line 9: Line 9:
 
[[File:Xmlfileexport.jpg‎]]
 
[[File:Xmlfileexport.jpg‎]]
  
* export xml size will be at least twice as total size of all files.
+
Export XML size will be at least twice the total size of all files.
  
<hr>
+
==Autoloader can be used to import file field as well==
<big>
 
Autoloader can be used to import file field as well
 
</big>
 
  
Three nodes are mandatory, filename,url and data. The file node MUST contain an attribute datatype="binary" .
+
Three nodes are mandatory:
 +
* filename,  
 +
* url and  
 +
* data
 +
 
 +
The file node MUST contain a ''datatype="binary"'' attribute.
 
<br>
 
<br>
System ignore data node if url is starts with "http" or "ftp", System downloads a copy from remote site and stores a local copy.
+
The system will ignore the data node if the URL starts with "http" or "ftp." The system will download a copy from the remote site and store a local copy.
 
<br>
 
<br>
 
[[File:Xmlautoload.jpg‎]]
 
[[File:Xmlautoload.jpg‎]]
 
<br>
 
<br>
* if authentication is required for FTP resources, please use this format
+
if authentication is required for FTP resources, please use this format:
 
+
''<nowiki>ftp://username:password@hostname/myfolder/my.document.doc</nowiki>''
ftp://username:password@hostname/myfolder/my.document.doc
 
  
  

Revision as of 10:05, 30 August 2013

Export a File field using Report XML export

Put <!--FileExportBinary--> inside details box of Custom Export template
Xmlexport.jpg

XML exported

Xmlfileexport.jpg

Export XML size will be at least twice the total size of all files.

Autoloader can be used to import file field as well

Three nodes are mandatory:

  • filename,
  • url and
  • data
The file node MUST contain a datatype="binary" attribute.


The system will ignore the data node if the URL starts with "http" or "ftp." The system will download a copy from the remote site and store a local copy.
Xmlautoload.jpg

if authentication is required for FTP resources, please use this format:
ftp://username:password@hostname/myfolder/my.document.doc


See Also