Update 20241118
This commit is contained in:
@@ -32,5 +32,11 @@ namespace OnDoc.Helper
|
||||
stream.Position = 0;
|
||||
return stream;
|
||||
}
|
||||
|
||||
public String Base64FromFile(string filename)
|
||||
{
|
||||
Byte[] bytes = File.ReadAllBytes(filename);
|
||||
return Convert.ToBase64String(bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user