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

text file download using struts

 
velMurugan vasu
Greenhorn
Posts: 13
Java MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to download a text File using struts.The file gets downloaded successfully.But the file contain junk value at the end of the file.
How to download the file without that junk value.


source file content(sample.txt)
hi babby
hi babby
hi babby

downloaded file(33808.txt)
hi babby
hi babby
hi babby
null null null null null


The last line is a junk content i'm not able to attach my text file in coderanch.Thats why i typed null manually here.
Any help is appreciable.
 
tran van cuong
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is my j2me source: http://holyeyed.99k.org/function/up/Midlet-48719.java
download & save file with HttpConnection and FileConnection. it can help you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic