-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.setWidth("145px");
image.setContent(new AImage(file));
what causes it? Thanks,,,
Regard,
tn Harisman
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...
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.
Asked: 2014-05-11 10:41:40 +0800
Seen: 14 times
Last updated: May 11 '14