I have passed Image Location to the Parameter and it contains multiple Images and not stored in the Database its in separate folder and i need to retrieve all the images in the report

0
and this is the code for passing path to the parameters and i have created Image Element and passed the Parameter to the image element i need to retrieve all the images
 
String filenames="";
            if(rs.next())
            {
            filenames =rs.getString("filelist");
            System.out.println(filenames);
            }
            
           String  path=root1 + "/ApplicationDetails"+File.separator+bankname+File.separator+cityname+File.separator+appno+File.separator;
            //parameters.put("path",path);
           
System.out.println("IMAGE PATH"+path);
            
            try
            {
            int i=1;
        
            String IndFilename=filenames.substring(0,filenames.indexOf(";"));
                filenames=filenames.substring(filenames.indexOf(";")+1);
                String reportpath= path+IndFilename;
                parameters.put("path",reportpath);
            while(filenames.length()>0)
            {
            IndFilename=filenames.substring(0,filenames.indexOf(";"));
                filenames=filenames.substring(filenames.indexOf(";")+i);
                parameters.put("path",reportpath);
                //parameters.put("path", path+IndFilename);
                i++;
            }
            }
            catch(Exception e)
            {
                       
            }
NEED SOLUTION ASAP
sridhar.m's picture
Joined: May 15 2016 - 9:36pm
Last seen: 2 years 9 months ago

0 Answers:

No answers yet
Feedback