Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing the csv file to database

 
Buddha Raju
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All.
I am having a result set. I need to read the result set and create a CSV file and store the CSV file in to the database table. Please let me know how to do this. It will be great help for me if you send the code.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be great help for me if you send the code.


JavaRanch is not a code mill. You'll get lots of help with writing code, but you'll find that few people will be willing to do all the work for you.

So what have you come up with so far?
 
Buddha Raju
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Bear Bibeault . I need some help

Raju
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Buddha Raju:
I need some help


Start writing code !!! everyone is looking forward to help you if you face any problem

Shailesh
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shailesh is correct, you will receive lots of help with writing your code. You will receive less help trying to get someone to write it for you. Have you even an outline (pseudo-code) of what the code should do? Have you tried writing anything down yet? If so, post it here as a starting point.
[ June 18, 2005: Message edited by: Bear Bibeault ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, forget about csv file. Just go with any file like jpg, gif, txt. All goes through the same process.

- get the file in binary
- make that as a blog object
- insert that into DB

Try google around you will get many hints.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This request seems like a strange one. Why would you want to store the data as a csv, when it is always easy to store the data in a table and later format it to csv when you take it out/query it again? Sort of the equivalent of storing html in your database instead of generating it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic