Base64 encoder class.  
 More...
 | 
| static byte[]  | FromBase64String (string base64string, bool useSaveFormat=true) | 
|   | Converts a Base64-string to a byte-array.  
  | 
|   | 
| static string  | ToBase64String (byte[] bytes, bool useSaveFormat=true) | 
|   | Converts a byte-array to a Base64-string.  
  | 
|   | 
| static string  | ToBase64String (string str, Encoding? encoding=null, bool useSaveFormat=true) | 
|   | Converts the value of a string to a Base64-string.  
  | 
|   | 
| static string  | Base64FromFile (string file, bool useSaveFormat=true) | 
|   | Converts a file to a Base64-string.  
  | 
|   | 
| static async Task< string >  | Base64FromFileAsync (string file, bool useSaveFormat=true) | 
|   | Converts a file to a Base64-string asynchronously.  
  | 
|   | 
| static bool  | FileFromBase64 (string file, string base64string, bool useSaveFormat=true) | 
|   | Converts a Base64-string to a file.  
  | 
|   | 
| static async Task< bool >  | FileFromBase64Async (string file, string base64string, bool useSaveFormat=true) | 
|   | Converts a Base64-string to a file asynchronously.  
  | 
|   | 
◆ Base64FromFile()
  
  
      
        
          | static string BogaNet.Encoder.Base64.Base64FromFile  | 
          ( | 
          string |           file,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a file to a Base64-string. 
- Parameters
 - 
  
    | file | File to convert | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - File content as converted Base64-string
 
- Exceptions
 - 
  
  
 
 
 
◆ Base64FromFileAsync()
  
  
      
        
          | static async Task< string > BogaNet.Encoder.Base64.Base64FromFileAsync  | 
          ( | 
          string |           file,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a file to a Base64-string asynchronously. 
- Parameters
 - 
  
    | file | File to convert | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - File content as converted Base64-string
 
- Exceptions
 - 
  
  
 
 
 
◆ FileFromBase64()
  
  
      
        
          | static bool BogaNet.Encoder.Base64.FileFromBase64  | 
          ( | 
          string |           file,  | 
         
        
           | 
           | 
          string |           base64string,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a Base64-string to a file. 
- Parameters
 - 
  
    | file | File to write the content of the Base64-string | 
    | base64string | Data as Base64-string | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - True if the operation was successful
 
- Exceptions
 - 
  
  
 
 
 
◆ FileFromBase64Async()
  
  
      
        
          | static async Task< bool > BogaNet.Encoder.Base64.FileFromBase64Async  | 
          ( | 
          string |           file,  | 
         
        
           | 
           | 
          string |           base64string,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a Base64-string to a file asynchronously. 
- Parameters
 - 
  
    | file | File to write the content of the Base64-string | 
    | base64string | Data as Base64-string | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - True if the operation was successful
 
- Exceptions
 - 
  
  
 
 
 
◆ FromBase64String()
  
  
      
        
          | static byte[] BogaNet.Encoder.Base64.FromBase64String  | 
          ( | 
          string |           base64string,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a Base64-string to a byte-array. 
- Parameters
 - 
  
    | base64string | Data as Base64-string | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - Data as byte-array
 
- Exceptions
 - 
  
  
 
 
 
◆ ToBase64String() [1/2]
  
  
      
        
          | static string BogaNet.Encoder.Base64.ToBase64String  | 
          ( | 
          byte[] |           bytes,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts a byte-array to a Base64-string. 
- Parameters
 - 
  
    | bytes | Data as byte-array | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - Data as encoded Base64-string
 
- Exceptions
 - 
  
  
 
 
 
◆ ToBase64String() [2/2]
  
  
      
        
          | static string BogaNet.Encoder.Base64.ToBase64String  | 
          ( | 
          string |           str,  | 
         
        
           | 
           | 
          Encoding? |           encoding = null,  | 
         
        
           | 
           | 
          bool |           useSaveFormat = true ) | 
         
       
   | 
  
static   | 
  
 
Converts the value of a string to a Base64-string. 
- Parameters
 - 
  
    | str | Input string | 
    | encoding | Encoding of the string (optional, default: UTF8) | 
    | useSaveFormat | Use safe format for Base64, suitable for URLs and files (optional, default: true) | 
  
   
- Returns
 - String value as converted Base64-string
 
- Exceptions
 - 
  
  
 
 
 
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Encoder/Encoder/Base64.cs