T
T
taylor962020-03-02 10:02:31
Java
taylor96, 2020-03-02 10:02:31

How can a file stored in a DB be saved as VARBINARY?

The files are stored in the database as varbinary. Tell me how they can be pulled out of the request and saved in the program so that later it can be converted back to a file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2020-03-02
@leahch

You pull out as a normal field, but through resultset.getBinaryStream(idx)for example.
Hope this helps - https://docs.oracle.com/cd/B19306_01/java.102/b143...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question