ZK image.setContent not showing in my Ubuntu

asked 2014-05-11 10:41:40 +0800

tnharisman gravatar image tnharisman
31 3

updated 2014-05-11 10:43:03 +0800

please help me, my image component not showing using image.setContent in Ubuntu

File file = new File("smb://myIP/folder/test.png"); //==>image file in windows os
image.setContent(new AImage(file));

what causes it? Thanks,,,


tn Harisman

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-11 22:20:57 +0800

nmpallas gravatar image nmpallas
115 4

I don't think file API works with smb...your try{}catch() works? You should see an exception i believe. To access samba shared from Java you need a different library.

link publish delete flag offensive edit

answered 2014-05-11 22:22:36 +0800

nmpallas gravatar image nmpallas
115 4

Try changing the filepath of the image to a local /home/user/some/random/path and see afterwards if you get the same error. Btw..why you want to load it from a smb shared?Another trick, would be to mount the NFS window part and expose it to the target ubuntu machine as a /some/random/path/my_imag.png and that could work...

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-05-11 10:41:40 +0800

Seen: 14 times

Last updated: May 11 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More