Refactored the webservice postMultipart to supply a version of the method that takes in input stream.