3 Replies - 3275 Views - Last Post: 03 December 2007 - 12:20 PM Rate Topic: -----

#1 anjali_gargcs  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 19-October 07

how to upload a file(.doc) in database through java?

Post icon  Posted 02 December 2007 - 11:02 PM

I have to upload a file (.doc) in databse through java.
how can i do it
plz help me
Is This A Good Question/Topic? 0
  • +

Replies To: how to upload a file(.doc) in database through java?

#2 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: how to upload a file(.doc) in database through java?

Posted 03 December 2007 - 04:54 AM

option 1: upload the file separately, and store only it's location in the db
option 2: use some binary field to store it (blob, or similar)
Was This Post Helpful? 0
  • +
  • -

#3 anjali_gargcs  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 19-October 07

Re: how to upload a file(.doc) in database through java?

Posted 03 December 2007 - 10:12 AM

View Post1lacca, on 3 Dec, 2007 - 04:54 AM, said:

option 1: upload the file separately, and store only it's location in the db
option 2: use some binary field to store it (blob, or similar)


Please can you tell me the code that how can i do it?
Was This Post Helpful? 0
  • +
  • -

#4 1lacca  Icon User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: how to upload a file(.doc) in database through java?

Posted 03 December 2007 - 12:20 PM

We don't give out complete solutions to any of the problems asked here (read the forum policy), but we are happy to give directions, or if you've come up with something on your own to corrrect the errors.


Hint: I would be surprised if you couldn't find a complete solution for any of these with google.

However I would still suggest trying to solve it by yourself, it is not a difficult problem, but you could learn some interesting things.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1