return ServiceUtil.returnError("Unable to write binary data to: " + file.getAbsolutePath());
}
/* scale Image in different sizes */
String viewNumber = String.valueOf(productContentTypeId.charAt(productContentTypeId.length() - 1));
ScaleImage imageTransform = new ScaleImage();
Map<String, Object> resultResize = FastMap.newInstance();
try {
resultResize.putAll(imageTransform.scaleImageInAllSize(context, filenameToUse, "additional", viewNumber));
} catch (IOException e) {
String errMsg = "Scale additional image in all different sizes is impossible : " + e.toString();
Debug.logError(e, errMsg, module);
return ServiceUtil.returnError(errMsg);
} catch (JDOMException e) {