Vote count:
0
Hello everyone, I have a scenario where I am fetching multiple images from the oracle database through loop. But its taking a lot of time to fetch the images and display it on browser. Through this code I am calling my method with some parameters.
for(Object[] obj: memberDetails)
{
System.out.println("String.valueOf(obj[0])"+String.valueOf(obj[0]));
try{
memberImage=dtSrvc.getQueImageForQC(Id,String.valueOf(obj[0]));
}
catch(Exception e)
{}
map.put("memImage"+count, memberImage);
key.add("memImage"+count);
hmap.put("memImage"+count, memberImage);
count++;
}
and here is my query through which I am fetch the Images
ps = conn.prepareStatement("select photo from member_photo where ID='"
+ Id + "' and que_id=" + QueId);
please let me know how can I fast this process. I am unable to fetch all the images if the network is slow. My application is currently using by many peoples.
Thanks
asked 24 secs ago
Image takes lot of time to load in jsp
Aucun commentaire:
Enregistrer un commentaire