Not sure quite that I understand your question. Please let me know the following.
1. Mobile Device Make and Model. (Make sure you see the same in Agent listing.)
2. Size of Image file.
3. Association of file type registerd in DMS.
I you have configured correctly the file transfer should work fine.
For information on the gateway server usage please check
http://telefusion.in/Documentation/ [
for documentation on the libraries] this can help you get started.