• Post Reply Bookmark Topic Watch Topic
  • New Topic

file not getting downloaded  RSS feed

 
walter bakshi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to retrieve file from database which is stored with blob datatype and i am passing manually id associated with in code
its not retrieving the file please anyone help me...
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not retrieving the file

What does that mean? What is or is not happening when you run this code? What happens if you execute the DB statement directly against the DB?

Also, please read http://www.coderanch.com/how-to/java/TellTheDetails and keep it in mind for this and future questions.
 
walter bakshi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir file was not getting downloaded... i do not know why... it was showing some null pointer exception
but now its working i am using statement command and its getting executed..
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it was showing some null pointer exception

In the future, if there is an exception, 1) always post the full stack trace, 2) always tell in which line of code it happens, and 3) always post the values of the relevant involved variables. That is information you need to debug it anyway, so imagine how much more people who have no idea what is happening, and do not see the code, will need it in order to help you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!