create or replace function blob_to_clob (blob_in in blob) return clob
asv_clob clob;
v_varchar varchar2(400000);
v_start pls_integer := 1;
v_buffer pls_integer := 400000;
tmp_num number;
begin
dbms_lob.createtemporary(v_clob, true);
tmp_num := ceil(dbms_lob.getlength(blob_in) / v_buffer);
if tmp_num > 0 then --防止傳入的blob為null或長度為0時引發錯誤
for i in 1..tmp_num
loop
v_varchar := utl_raw.cast_to_varchar2(dbms_lob.substr(blob_in, v_buffer, v_start));
v_start := v_start + v_buffer;
end loop;
end if;
return v_clob;
end blob_to_clob;
將String轉化為int
package com.utils public class convert 將輸入的字串轉化為int型別 param str 輸入的字串 return 返回該字串對應的int型別 public static int string2int string str long result 0 int i...
將Byte陣列轉化為String
問題 fcl得很多方法的返回值都是包含字元的byte 陣列而不是返回乙個string 這樣的方法包含在如下的類中 system.net.sockets.socket.receive system.net.sockets.socket.receivefrom system.net.sockets.so...
將Byte陣列轉化為String
fcl得很多方法的返回值都是包含字元的byte陣列而不是返回乙個string,這樣的方法包含在如下的類中 system.net.sockets.socket.receive system.net.sockets.socket.receivefrom system.net.sockets.socket...