Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other JSE/JEE APIs and the fly likes JavaMail: File extension omitted by invoking part.getFileName Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail: File extension omitted by invoking part.getFileName" Watch "JavaMail: File extension omitted by invoking part.getFileName" New topic
Author

JavaMail: File extension omitted by invoking part.getFileName

Ulrich Heeger
Ranch Hand

Joined: Jun 06, 2003
Posts: 266
Hi everyone
I have a question: When I invoke the getFileName()-method on a part and the fileName contains ISO 8859-1 character set, then it might be that the file extension is omitted, when the fileName contains whitespaces.
Example:
Filename: Comments f�r test.doc
Result of part.getFileName():


Filename: Commentsf�rtest.doc
Result of part.getFileName():



Is this a bug? Do you know a workaround to get the filename with the file extension?

Thanks a lot in advance
Greetings
Ulrich
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail: File extension omitted by invoking part.getFileName
 
It's not a secret anymore!