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

Bad file download problem

 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I'm trying to download a bad file which is being generated by the sql loader.Code depicted below of my servlet has downloaded .log file perfectly but .bad got a problem in getting download.I suspect


for unrecognized file types.

Can anybody help me in solving this issue please.



thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "a problem"? TellTheDetails

Instead of

try
 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,
Well i had manipulated the code to avoide unnecessary codes of ResourceBundle while posting.Infact,fullpath variable includes the file name and path of the file.

1.file which i'm trying to download is available
2.I'm not getting any exception at the server or at the client.




 
Prashanth Bhanu
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

The problem is,the file is not getting downloaded to the client.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then what does happen? Is there an exception? If so, which one, and during which method call does it happen?

Why are you using a DataInputStream instead of a FileInputStream?
[ December 14, 2008: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic