简体   繁体   English

显示来自 blob 数据 oracle 的文件 - Angular/Java

[英]display file from blob data oracle - Angular/Java

New to Stack Overflow, Pardon if I miss adding any details in the question. Stack Overflow 的新手,如果我错过了在问题中添加任何细节,请原谅。

Requirement: I have various types of files (pdf, jpg, HTML, CVS, etc) saved as BLOB data in the oracle.要求:我在oracle中保存了各种类型的文件(pdf、jpg、HTML、CVS等)作为BLOB数据。 I have an angular component and a REST Service.我有一个角度组件和一个 REST 服务。 the task is to retrieve the blob data and send it to the front-end angular component in the rest service response.任务是检索 blob 数据并将其发送到 rest 服务响应中的前端 angular 组件。 After getting the response, need to display the file in a new tab or a pop-up window.得到响应后,需要在新标签页或弹出窗口中显示文件。

Questions: How can I send the blob data in rest service response so that I can convert it to a file and display it in the UI?问题:如何在休息服务响应中发送 blob 数据,以便我可以将其转换为文件并在 UI 中显示? (Is this possible?) (这可能吗?)

从 my_table 中选择 dbms_lob.substr(clob_field, 4000, 1);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM