View Single Post
  #1 (permalink)  
Old April 4th, 2007, 01:03 AM
krishnamoorthymca krishnamoorthymca is offline
Registered User
Join Date: Dec 2006
Location: Cuddalore, Tamilnadu, India.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to krishnamoorthymca
Default Problem in upload photo to domain server

hi frnds,
 i had a problem with upload the photo to the server. i am the following code to upload the photo to database from the client system

        String filename=request.getParameter("mainphoto");
        File filein = new File(filename);
    int filelength = (int) filein.length();
    InputStream streamedfile = new FileInputStream(filein);
    ps.setBinaryStream(1, streamedfile, filelength);
this code is working properly when i am work wit my local system as a server(tomcat) but after launch this project to the domain, i am facing the problem.
i got the error msg as "Resource cannot found"..
if u want to check this error, just login into
 with the username: and password:krishna
click on the link "ADD PHOTO" the u select one image file then click on upload, now u may see the error msg..
one important thing i have to tell here, in my local system i am using windows XP as OS, Tomcat6.0 as application server and My SQL 5.0 as a database server.. but in my domain
Operating system Linux
Service Status Click to View
Kernel version 2.6.9-34.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.5
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 5.1.6
MySQL version 5.0.24-standard
cPanel Build 10.9.0-STABLE 116
Theme cPanel X v2.6.0
plz help me to solve this problem..
contact me 9942939383
Endrum Anbudan

Reply With Quote