Forums Register Login

text file download using struts

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
My, my, aren't you a big fella. Here, have a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1335 times.
Similar Threads
Implementing download - XLS files - JSP scriptlet
xlsx file name problem in internet explorer
Opening an xlsx Excel file
displaying jsp filename to downloading file in internet explorer
Trying to download an excel through JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:52:50.