How convert CLOB to BLOB in Oracle?(如何在 Oracle 中将 CLOB 转换为 BLOB?)
问题描述
首先,我将图像的 BLOB 转换为 CLOB,然后将该 CLOB 转换回 BLOB.我看不到重新转换的图像.我该如何解决这个问题?
Firstly I converted a BLOB of an image to CLOB, and then converted that CLOB back to BLOB. I cannot see the reconverted image. How can i solve this problem?
blob_to_clob 函数:
clob_to_blob 函数:
推荐答案
像这样的代码将执行最少的重新编码:
Code like this will perform minimal recoding:
但是如果没有像 Base64 这样的任何编码,CLOB 无法正确包含所有图像数据
But CLOB can not properly contain all Image data without any encoding like Base64
这篇关于如何在 Oracle 中将 CLOB 转换为 BLOB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!