Groovy attach() Cross Platform Issue???

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Groovy attach() Cross Platform Issue???

Hey Guys,
This is my first posting on the nabble groovy forum so firstly hi to everyone! I've been participating on the grails forum for a while but my problem today I think is a Groovy one!

So I'm using attach() in my grails application to attach files to emails like so:

attach(fileRename, fileType, new File(file).readBytes())

This all work fine on my Windows 7 development environment, however when I publish to our staging server which is CentOS the attachments are always corrupt when they are received in the inbox?
Is this a know issue or am I doing something wrong?
Any help would be greatly appreciated.
Many Thanks