Tools API for encoded the image into a base64 string.
Base64Codec
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Base64String | 1 | 将普通文本进行base64编码 |
| DecodeBase64 | 1 | 将base64字符串还原为原来的字符串文本 |
| ToBase64String | 3 | Convert the Image from Input to Base64 Encoded String |
| GetImage | 1 | Function to Get Image from Base64 Encoded String |
| Base64RawBytes | 1 | 将base64编码的字符串还原为原始的数据流 |
| __getImageFromBase64 | 1 | Function to Get Image from Base64 Encoded String |
| IsBase64Pattern | 1 | |
| ToStream | 1 |
03 Members
String, Encoding, Boolean)将普通文本进行base64编码
| Name | Type | Description |
|---|---|---|
text | String | - |
encoding | Encoding | - |
gzip | Boolean | do gzip compression and then encoded as base64 string? |
String, Encoding, Boolean, Boolean)将base64字符串还原为原来的字符串文本
| Name | Type | Description |
|---|---|---|
base64 | String | a base64 encoded text string data for make decode |
encoding | Encoding | - |
strict | Boolean | throw exception when error occurs during base64 decode? this function will returns empty string if not strict and exception happends. |
this function may returns empty string when the given base64 string is invalid and case the base64 decoder error and set strict parameter to false.
IEnumerable(Of Byte))将任意的字节数据序列转换为base64字符串
| Name | Type | Description |
|---|---|---|
byts | IEnumerable(Of Byte) | - |
Convert the Image from Input to Base64 Encoded String
| Name | Type | Description |
|---|---|---|
img | Image | - |
this function will returns empty string if the error happends
Convert the Image from Input to Base64 Encoded String
String, ImageFormats)Function to Get Image from Base64 Encoded String
| Name | Type | Description |
|---|---|---|
Base64String | String | - |
format | ImageFormats | - |
String)将base64编码的字符串还原为原始的数据流
| Name | Type | Description |
|---|---|---|
base64 | String | - |
String, ImageFormats)Function to Get Image from Base64 Encoded String
| Name | Type | Description |
|---|---|---|
base64String | String | - |
format | ImageFormats | - |
String)