String s1="1231dsdgasd的飒飒大"; Clob c = new SerialClob(s1.toCharArray());//String 转 clob Blob b = new SerialBlob(s1.getBytes("GBK"));//String 转 blob// 也可以这样不传字符集名称,默认使用系统的// Blob b = new SerialBlob(s1.getBytes()); String clobString = c.g
原文地址http://www.oschina.net/code/snippet_135225_5485#8747,仅仅第十一行代码,便可将BLOB类型转化为String类型,简单粗暴,我喜欢 1 String s1="1231dsdgasd的飒飒大"; 2 3 Clob c = new SerialClob(s1.toCharArray());//String 转 clob 4 Blob b = new SerialBlob(s1.getBytes("GBK"));
简介 前面一篇博客介绍了关于Azure ManagerAPI Go SDK的使用,本篇继续介绍使用Blob Go SDK 操作中国区Azure Blob. SDK下载: go get github.com/Azure/azure-storage-blob-go/2016-05-31/azblob 示例程序: package main import ( "bufio" "bytes" "context" "fmt" "