Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
displaying a binary database file
Michael Stueve
Greenhorn
Posts: 1
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What do I need to use in the
Java
API to read a binary database file, ie. fileName.db ? Thank you. Mike
Laukik N. Desai
Greenhorn
Posts: 8
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Get the value from ResultSet as java.sql.Blob.
For example,
Blob largeFile = rs.getBlob("column_name");
InputStream inputStream = largeFile.getInputStream();
Once you have InputStream with you, then you can read that file anywhere
Campbell Ritchie
Marshal
Posts: 79153
377
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
And welcome to JavaRanch, both of you.
That's a very big dog. I think I want to go home now and hug this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to create a binary file
adding text to a database
URLyBird db file
Collaboration
Class file and File having extension bin
More...