cancel
Showing results for 
Search instead for 
Did you mean: 

store and retrieve binary data from database

Former Member
0 Kudos

i am struggling to store binary[] into database

webdynpro data dictionary having the following fields

Message - binary

how am i going to store into database and retrieve from database and bind to a textbox....

pls advice

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi,

Check this

Best regards, Maksim Rashchynski.

Answers (1)

Answers (1)

Former Member
0 Kudos

Purely based on jdbc, you can do the following:

For storing in:

PreparedStatement ps = ...

ps.setBinaryStream(i, new ByteArrayInputStream(byteArray),

byteArray.length);

For retrieving from:

ps.getBinaryStream(i);

Dennis