MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / EncodedFile

Method EncodedFile

dotnet/src/webdriver/EncodedFile.cs:38–43  ·  view source on GitHub ↗

Initializes a new instance of the class. The file as a Base64-encoded string. If is . The length of , ignoring white-space ch

(string base64EncodedFile)

Source from the content-addressed store, hash-verified

36 /// more than two padding characters, or a non-white space-character among the padding characters.</para>
37 /// </exception>
38 protected EncodedFile(string base64EncodedFile)
39 {
40 ArgumentNullException.ThrowIfNull(base64EncodedFile);
41 this.AsBase64EncodedString = base64EncodedFile;
42 this.AsByteArray = Convert.FromBase64String(base64EncodedFile);
43 }
44
45 /// <summary>
46 /// Gets the value of the encoded file as a Base64-encoded string.

Callers

nothing calls this directly

Calls 2

ThrowIfNullMethod · 0.80
FromBase64StringMethod · 0.80

Tested by

no test coverage detected