<PackageReference Include="Refit" Version="15.0.0-beta.1" />

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.