Use the given InputStream to build the TemporyFileBinaryBody
TempPath tempPath = TempStorage.getInstance().getRootTempPath();
tempFile = tempPath.createTempFile("attachment", ".bin");
OutputStream out = tempFile.getOutputStream();
IOUtils.copy(is, out);
out.close();