This content has been marked as final.
Show 1 reply
-
1. Re: Image Uploading in Project WAR File
ananymous7239 Feb 21, 2011 12:21 AM (in response to ambrish_kumar)Hi Ambrish i want to save 5 uploaded images as 5 records in Database .you have any idea about this please help me .i am able to save only the last upload image. this is my persist method @Override @Begin(join = true) @End public String persist() { try { BeanUtils.copyProperties(getInstance(), doImageUpload); for (int num = 0; num < files.size(); num++) { getInstance().setData(files.get(num).getData()); getInstance().setLength(files.get(num).getData().length); log.info("...............files in persist"+files.get(num).getLength()); log.info("...............files in persist"+files.size()); log.info("...............files in persist"+files.get(num).getData()); } super.persist(); } catch (Exception e) { log.info("exception" + e); } return "done"; }