jmon Well-Known Member Licensed User Longtime User Dec 17, 2013 #1 Hi, I am trying to open set a jpg file to an imageView. The Jpg file is on a server (Windows), but I get an error: Code: java.io.FileNotFoundException: file:\vfx-server-wds\WebServer\intranet\data_users\team1_jo.jpg (The filename, directory name, or volume label syntax is incorrect) The path I am trying to access exists: Code: \\vfx-server-wds\WebServer\intranet\data_users\team1_jo.jpg This is my code: Code: img.SetImage(fx.LoadImageSample(File.GetUri("//vfx-server-wds/WebServer/intranet/data_users", ""), _ RS.GetString("teams.team_name").ToLowerCase & "_" & RS.GetString("user.nick").ToLowerCase & ".jpg", 32, 32)) Can someone help me find what's wrong here? Note: sorry I posted this question already in this thread, as I thought it was related to external file access.
Hi, I am trying to open set a jpg file to an imageView. The Jpg file is on a server (Windows), but I get an error: Code: java.io.FileNotFoundException: file:\vfx-server-wds\WebServer\intranet\data_users\team1_jo.jpg (The filename, directory name, or volume label syntax is incorrect) The path I am trying to access exists: Code: \\vfx-server-wds\WebServer\intranet\data_users\team1_jo.jpg This is my code: Code: img.SetImage(fx.LoadImageSample(File.GetUri("//vfx-server-wds/WebServer/intranet/data_users", ""), _ RS.GetString("teams.team_name").ToLowerCase & "_" & RS.GetString("user.nick").ToLowerCase & ".jpg", 32, 32)) Can someone help me find what's wrong here? Note: sorry I posted this question already in this thread, as I thought it was related to external file access.
jmon Well-Known Member Licensed User Longtime User Dec 17, 2013 #2 Ok... I just need to remove "File.GetUri" and just write directly the path as string. So why does this thread on external file access says that we should use "File.GetUri" Upvote 0
Ok... I just need to remove "File.GetUri" and just write directly the path as string. So why does this thread on external file access says that we should use "File.GetUri"
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2013 #3 File.GetUri allows you to convert a standard file path to a Uri. In this case the value is already a Uri so you do not need to convert it. Upvote 0
File.GetUri allows you to convert a standard file path to a Uri. In this case the value is already a Uri so you do not need to convert it.