Share via


ImageData Class

Definition

The content or blob url of image, could be base64 encoding bytes or blob url. If both are given, the request will be refused. The maximum size of image is 2048 pixels * 2048 pixels, no larger than 4MB at the same time. The minimum size of image is 50 pixels * 50 pixels.

public class ImageData
type ImageData = class
Public Class ImageData
Inheritance
ImageData

Constructors

ImageData()

Initializes a new instance of ImageData.

Properties

BlobUrl

The blob url of image.

Content

Base64 encoding of image.

To assign a byte[] to this property use FromBytes(Byte[]). The byte[] will be serialized to a Base64 encoded string.

Examples:

  • BinaryData.FromBytes(new byte[] { 1, 2, 3 }): Creates a payload of "AQID".

Applies to