We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff55efd commit 24fe81bCopy full SHA for 24fe81b
dotnet/src/webdriver/BiDi/Modules/Network/BytesValue.cs
@@ -17,6 +17,7 @@
17
// under the License.
18
// </copyright>
19
20
+using System;
21
using System.Text.Json.Serialization;
22
23
namespace OpenQA.Selenium.BiDi.Modules.Network;
@@ -27,6 +28,7 @@ namespace OpenQA.Selenium.BiDi.Modules.Network;
27
28
public abstract record BytesValue
29
{
30
public static implicit operator BytesValue(string value) => new StringBytesValue(value);
31
+ public static implicit operator BytesValue(byte[] value) => new Base64BytesValue(Convert.ToBase64String(value));
32
}
33
34
public record StringBytesValue(string Value) : BytesValue;
0 commit comments