p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   J2EE (http://p2p.wrox.com/forumdisplay.php?f=94)
-   -   Problem in upload photo to domain server (http://p2p.wrox.com/showthread.php?t=56226)

krishnamoorthymca April 4th, 2007 01:03 AM

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 www.thambadhi.in/demo
 with the username: krishnamoorthy@yahoo.com 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


All times are GMT -4. The time now is 09:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.