Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 24th, 2002, 04:41 PM
wolfespawn wolfespawn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 68 wolfespawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to wolfespawn
image gets altered when uploaded error?

i am not sure how to explain this because i am not even sure this is an Apache error... i am guessing it must be Tomcat or Apache, because our conversion from JServ to Tomcat is the only thing that changed and now this doesn't work right...

we have a program that uses some freeware (O'reilly company at first) which allows users to browse their computer for a file (in this case, an image or PDF file) , and upload it to our Linux server. When the server tries to display these images, I found that they had been modified during the upload? This never happened before we started using Tomcat but I am not even sure that is the problem. I looked at the .jpg in textpad and then uploaded it and looked at it again in textpad on the server's copy and noticed some extra stuff was added (garbled of course... but the image size grew a little). My initial resolution was to find another UPLOAD software, so i replaced O'Reilly with a compatible version and tried again. Same thing happens on images and PDF's....

i am guessing it must be a TOMCAT OR APACHE issue... any idea's? it would be greatly appreciated...

Reply With Quote
  #2  
Old January 24th, 2002, 11:56 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> allows users to browse their computer for a file

So web-based uploader. How about uploading those image files via FTP? Are you sure ASCII is not the default-mode?

Reply With Quote
  #3  
Old January 25th, 2002, 11:27 AM
wolfespawn wolfespawn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 68 wolfespawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to wolfespawn
well, i know how to FTP stuff to the server but our users probably wont... our program provides the user a link on the webpage that opens a Browse window which allows them to search their computer for the image or file they wish to upload. they select it and it sends their file to the server in the directory we have told it to... it worked well up until last month or so... i am not sure if it is a JDK issue (it uses the MultipartRequest object in java) or an Apache issue.. or TOMCAT!

when i FTP an image manually and view it, it is fine. when it passes through the program now, it gets altered...

i wish my users knew how to FTP, it would save me some headaches! (assuming i locked them into FTP'ing 1 way and only to 1 folder... and it did a virus check on the upload.. blah)

but this program is open to 1000's of users, so this "type" of program has been selected as the best solution.. as for the ASCII part, i am not sure how it is being encoded/decoded... we use the proper enctype that the software requires and like i said, this program worked fine before (so i am guessing it isnt the software..).

Reply With Quote
  #4  
Old January 26th, 2002, 01:22 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Likely it's an issue with Tomcat, so you should try asking the Java people at JSP forum. Maybe you should check and see if you have added a LIMIT on the byte or the like. You also should try to upload a small image (1k byte), see if the size is different.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > image gets altered when uploaded error?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT