|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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... |
|
#2
|
|||
|
|||
|
>> 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? |
|
#3
|
|||
|
|||
|
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..). |
|
#4
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > image gets altered when uploaded error? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|