Maybe you want to take a look at this post:
I had similar issues some time ago and using binary streams fixed the issue.