How to Store BLOBs Data into Database in Java?

Below Java code shows how to store BLOB object into database – Database BLOBs (Binary Large Objects) can be used to stored any data, it could be image, audio or video file for instance. This example shows you how we use JDBC library to store image in our database. To send the binary information to …

Read More

How to get JDBC Driver Property Info in Java?

Below java code shows you JDBC driver property information – /**************************************************************************************** * Created on 04-2011 Copyright(c) http://kodehelp.com All Rights Reserved. ****************************************************************************************/ package com.kodehelp.javasql; import java.sql.Driver; import java.sql.DriverManager; import java.sql.DriverPropertyInfo; import java.util.Properties; /** * Created by http://kodehelp.com * Date: 4/29/11 */ public class GetDriverPropertyInfo { public static void main(String args[]) throws Exception{ Class.forName(“oracle.jdbc.driver.OracleDriver”); Properties info = …

Read More