svg to base64
- 作者: 半壁江山难稳固
- 来源: 51数据库
- 2020-10-03
我之前也试过数据库字段我设置为了longtext.用System.Convert.ToBase64String(byte[] aa)将byte组转为字符存;读的时候用System.Convert.FromBase64String(string bb)将字符转为byte组就可以了.
1. base64 decode
select?utl_raw.cast_to_varchar2(utl_encode.base64_decode(utl_raw.cast_to_raw('dgvzda==')))?from?dual
2. base64 encode
select?utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('test')))?from?dual
1. base64 decode
select?utl_raw.cast_to_varchar2(utl_encode.base64_decode(utl_raw.cast_to_raw('dgvzda==')))?from?dual
2. base64 encode
select?utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('test')))?from?dual
推荐阅读