Skip to Content
Flat file handling is quite an essential thing in any implementation process and xMII is no exception. Developers face all sorts of trouble in handling files using various protocols.  From uploading attachments on server to sending emails, all sort of things requires file handling. And sometimes a developer feels why is anyone needing a conventional file handling system when we have an ERP at our disposal. But this issue is always debatable, and its better for me not getting into that ;).

Ways in which one can handle file in xMII.

 

xMII file handling is quite cool and one can handle almost any sort of file in xMII. Basic things includes XML , images and HTML handling. But here we are discussing some advanced concepts  i.e. FTP.

We have got a requirement where we have to upload  file(s) on the server. There are two possible ways of achieving it:

  1.      Using the inbuilt xMII FTP handling.

         

  2.      Using the JAVA functionality  to upload the files without bringing      xMII into picture

xMII Built-in Functionality for FTP

xMII addresses most of the things required for file handling. For handling a system in FTP way, one needs to install an FTP server on it. I personally prefer Filezilla for its simplicity and robustness.

FileZilla

So after installing the Filezilla server, one can access the the machine in FTP way. Here we’ll discuss a scenario where we need to get the number of  files on a folder in a remote folder. For this we’ll use the FTPGetFileList action block to get the no. of  files on a remote folder on an FTP server.

The output of this will be something like this

Handling the file From Java functionality

We were actually working on xMII FTP thing to get the requirement fulfilled until my teammate Praveen came up with an idea of  doing it in the JAVA way. It is quite cool and suits our requirement.

JAVA is a powerful language and does all sorts of things. It can be a very powerful alternative for this requirement except when xMII based authentication comes into picture.

I won’t be discussing it here as it may go beyond the scope of SDN and it is which one should look into JAVA forums.

(We actually used a JSP file which calls a jar file sitting on the server and the JAR file handles he saving of the files on the server). Although there are lot more options that one can use to handle files using JAVA and xMII too.

 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply