Use outputstream to upload