0

我是 Helidon SE 的新手,想知道是否可以通过使用 Helidon SE 创建的 REST 服务将文件上传到 Oracle DB(Blob/Clob 列)。

4

1 回答 1

0

File upload/download example available at Helidon repository: https://github.com/oracle/helidon/tree/master/examples/media/multipart

However this example uses disk to store/retrieve the file but you can replace that to JDBC read/insert.

Depending on the LOB size probably it's better to upload/download the file in a reactive way (like the example does above) and read/insert the bits when you have all of them.

(In addition Oracle DB 20c available in preview with JDBC Reactive extension what I haven't checked but most likely with that you can make it fully reactive from end-to-end.)

于 2020-11-26T16:28:56.503 回答