• Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload file example get an null from a path  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have got an example from the net of a Class which upload a file to the server.

I get this error:



The code is like this:



and like this:


Any idea, please?

Regards, Isaac
 
Sam Knowski
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does the file /Users/isaac/Desktop/uploadFileTest_jsp/target/uploadFileTest_jsp-1.0-SNAPSHOT/data/manifest.mf exist?
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes in my local
 
Stephan van Hulst
Saloon Keeper
Posts: 7993
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you're trying to access a file on the client from the server?
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the moment I am trying to upload a file from my local when the app is running in my local tomcat

And the final idea is upload a file which is in my local using a app which is in the server
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an update of the same issue:


And this code is also included:



The exception jumps at this point:



I am stuck the truth Any more idea, please?
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried with different files in different locations but anything it always shows the same error from this exeption after this line:





Any idea, please?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!