I've been searching for solutions on how to show an image using its
location(absolute path) and your code helped me a lot. Been under stress the
past days due to this problem. Thanks Mr. ORACLEADF! 

Btw, for those who wants to know how to convert a File() to byte[] use this:

try {
    File file = new File(imagefilePath);
    byte[] byteArray = new byte[file.length()]();
    byteArray = FileUtils.readFileToByteArray(file);  
 }catch(Exception e){
     e.printStackTrace();

 }


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/show-image-retrieved-from-database-tp4658009p4670098.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to