Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2007, 03:48 AM
Registered User
 
Join Date: Dec 2006
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);
    ps.executeUpdate();
    ps.close();
    streamedfile.close();
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: [email protected] 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
Krishnamoorthy.s
9942939383


Krishnamoorthy.S





Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Upload to different domain Ivision ASP.NET 2.0 Professional 1 August 3rd, 2008 12:45 PM
Problem in upload photo to domain server krishnamoorthymca JSP Basics 4 April 20th, 2007 12:49 AM
Problem in upload photo to domain server krishnamoorthymca J2EE 0 April 4th, 2007 01:03 AM
how to make browser....and upload photo.. jhanny007 PHP How-To 2 March 29th, 2007 02:26 PM
Display 'no photo' in a JSP when photo is not pres Inderjeet Pro JSP 0 April 21st, 2006 05:35 AM





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