I found a solution
It seems that none of the output options fits for sending file. So I used "send_file" function instead of returning the file or it's content.
I don't know but maybe it doesn't seem a standard way, but we decided to use it until find another solution.
It will be wonderful, If someone help us ...
General developer forum
Return file in web service response
This discussion has been locked so you can no longer reply to it.