Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Uploading files other than text files

 
nidhivel raja
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,i am facing a problem with Uploading

image files,mpeg and pdf files
After uploading an image file i get a blurred

image on the server side
In case of movie file i am unable to open it
Please do help me
The following is my front end jsp file





ProcessFileUpload.jsp is as follows






















Please do help me
Thank you in advance
 
nidhivel raja
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please give me your suggestions??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using a Reader and Writer - these only work for text files because they do character conversions on the fly.



Bill
 
nidhivel raja
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for your reply Mr.William Brogden .Can you please tell me what is the statement that i should use instead of those two lines?
 
nidhivel raja
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I apologise for my behaviour Mr.Bear Bibeault
I was in a hurry to complete my project.i will surely be patient in the future.Thank you for correcting me
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by nidhivel raja:
I apologise for my behaviour Mr.Bear Bibeault
No need to apologize. The guidelines are there to help you. Ticking people off by bumping threads before members from all over the globe may have a chance to answer doesn't help you get your answer faster.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please tell me what is the statement that i should use


No

Because you realllly need to learn more about Java IO - review the JavaDocs for the java.io package and work through this tutorial. You will save time in the long run by making fewer mistakes with respect to character and binary IO processes.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic