I made a Java function that takes an InputStream as an input. I have a oracle.sql.BLOB instance to pass to that function. How can I convert it to a InputStream?
Do I need to re-write my function using a BLOB parameter, instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Declare your Java parameter of type
oracle.sql.BLOBas per the “Mapping Datatypes” documentation. Then, you callgetBinaryStream()on thatBLOBobject to obtain yourInputStream.