Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copying file into database

 
Monty Guppy
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the gist of what I am trying to do:
- I need to read a PDF file located on my machine through my java program.
- The PDF file needs to be then converted into a byte array
- The byte array then needs to be inserted into a (MS-SQL) table field (type=image)
- The PDF file then needs to be deleted from my machine
I am getting very confused with the different types of inputStreams, and how to use them.
Any help would be greatly appreciated.
 
Monty Guppy
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone?
 
Brent Worden
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


------------------
Brent Worden
http://www.brent.worden.org/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic