Class MediaContentData
Inheritance
MediaContentData
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public sealed class MediaContentData : IContentData, IBase64Source
Properties
|
Edit this page
View Source
Base64Bytes
Optional. The raw image bytes for the image.
If you use an AWS SDK, you don't need to encode the image bytes in base64.
Declaration
[JsonProperty("bytes")]
public string Base64Bytes { get; set; }
Property Value
|
Edit this page
View Source
S3Location
Optional. The location of an image object in an Amazon S3 bucket.
To see which models support S3 uploads, see Supported models and features for Converse.
Declaration
[JsonProperty("s3Location")]
public AmazonTypes.S3Location S3Location { get; set; }
Property Value
Methods
|
Edit this page
View Source
FromBase64(string)
Declaration
public static MediaContentData FromBase64(string base64)
Parameters
| Type |
Name |
Description |
| string |
base64 |
|
Returns
|
Edit this page
View Source
FromS3Location(S3Location)
Declaration
public static MediaContentData FromS3Location(AmazonTypes.S3Location s3Location)
Parameters
Returns
|
Edit this page
View Source
FromS3Location(string, string)
Declaration
public static MediaContentData FromS3Location(string uri, string bucketOwner = null)
Parameters
Returns
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
IsBase64()
Declaration
Returns
Implements
Extension Methods