public class BlobUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
blob2Bytes(Blob blob)
Blob to byte array.
|
static String |
blob2string(Blob blob)
Blob 2 string string.
|
static Blob |
bytes2Blob(byte[] bytes)
Byte array to blob
|
static Blob |
string2blob(String str)
String 2 blob blob.
|
public static Blob string2blob(String str)
str - the strpublic static String blob2string(Blob blob)
blob - the blobpublic static Blob bytes2Blob(byte[] bytes)
bytes - the byte arraypublic static byte[] blob2Bytes(Blob blob)
blob - the blobCopyright © 2023 Seata. All rights reserved.