a take relative path something like this
ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
String mainpath=context.getRealPath("WEB-INF/upload/");
i have...
Type: Posts; User: barni120
a take relative path something like this
ExternalContext context=FacesContext.getCurrentInstance().getExternalContext();
String mainpath=context.getRealPath("WEB-INF/upload/");
i have...
ok display work correct but i run it on server tomcat
and now when i open this web application on other computer
http://localhost:8080/jee/faces/index.jsp
and i upload image
then we are go...
thx for help :)
but next problem... i can't display uploaded file on side
i do something like this
side.jsp
<h:graphicImage id="up" value="C:/upload/#{uploadclass.ImgBeforeFilter}" >...
ok thx for help it was working corectly but i wrong understend code :)
but now i have other problem
I have read image to two-dimensional array
File file = new File("C:/upload/1.bmp");
...
sry my bad there is a:
public void setName(String name) {
this.name = name;
System.out.println(name+"setname");
}
here i creat a new file on disk file = File.createTempFile(prefix , "." + suffix, new File("c:/upload"));
and then fileName = file.getName();
examlpe i upload Desert.jpg file
then in fileName i...
Hi i have a little problem
I have a two class Upload - class upload file to server and class filter
but now in class filter i need name uploaded file i try something like this:
class upload:
...