A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Need fetch fullpath of a file uploaded
Joined: Jul 07, 2009
Nov 25, 2009 00:59:42
I want full path of the image uploaded through
AbcForm frm= (AbcForm)form;
FormFile image1 = galform.getTheFile1();
image1 is giving only filename. but i want full path of that file like "C:\temp\DSC00263.JPG";
could anybody please tel how can i do it..
Joined: Nov 09, 2009
Nov 25, 2009 01:50:00
it is very easy..
You can get the path of a file as below
File f=new File("fileName");
I agree. Here's the link:
subject: Need fetch fullpath of a file uploaded
Download pdf file in struts2
how to handle file uploads in spring
get full path
how to set the file path in struts for file upload
How to get the path of an Uploaded file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014