<PackageReference Include="Refit" Version="16.4.0" />

Refit.ByteArrayPart

public class ByteArrayPart : MultipartItem
Allows the use of a Byte array in a multipart form body.
public byte[] Value { get; }

Gets the byte array value.

public ByteArrayPart(byte[] value, string fileName, string contentType = null, string name = null)

Allows the use of a Byte array in a multipart form body.