Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Linux
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 4th, 2007, 03:48 AM
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 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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

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

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