Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem! => enctype="multipart/form-data "  RSS feed

 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm facing a weird problem.. I'm using Struts/Hibernate. Whe I submit a common form, I get the data and put in database normally. But, when this is a form with enctype="multipart/form-data" property set, (for uploading files) characters like � � � are put in database like ? ? ? .. This occurs only when application server is running on linux. I have already changed charset but didn't work... Anyone could help me??

Regards,

Diogo Magalhaes
 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code may be helpful:

http://strutsblobapp.sourceforge.net/
 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply, Sean. But that's not the point. I can do the file upload. The problem is the following: When the application server is running on linux, when the form has multipart data properties, some special characters are not saved as they should. They are read as '?'.

Regards.

Diogo Magalhaes
 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using java.sql.Blob?

What is your database platform?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!