I have used your sample code as it is.
Getting error after the file is getting uploaded. Image is in .jpg format also have compressed it to 5kb.
Please do help. Dont know what is going wrong
Code downloaded from your website itself.
Should i be uploading data in xml format rather than bytes ??