Make image sizes smaller (Composer)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Make image sizes smaller (Composer)

Post by René Houba »

Hi,

One of our customers receives from their customers xml data with binary data (containing pictures).

The problem is that the size of the pictures are sometimes very big (not too big to receive). So if a pictues size is too big after they have received it and stored in a servers directory, they want to make the size of the picture smaller.

They use LANSA Composer. Is their someone have this situation with a soultion?
Or any suggestions?

Kind regards,
René
BrendanB
Posts: 134
Joined: Tue Nov 24, 2015 10:29 am

Re: Make image sizes smaller (Composer)

Post by BrendanB »

René,

depending on which type of server (windows or IBMi) they are using, the 'easiest' solution would be to place the files in a directory (from the xml) and use WATCH_DIRECTORY activity to monitor for new files, then run an external program over them (there are various command line programs for both windows and IBMi PASE environment that will resize images).

once you have the programs (search the internet, there are plenty of open souce ones), writing a processing sequence to do this should be relatively straight forward.

Brendan.
Post Reply