added functionality sender file from java client using gateaway