Image

  • Product images can be represented either directly as bytes or using a URI.

  • The JSON representation uses a union field called "image" to store this information.

  • When using a URI, it should generally be web-requestable.

  • Raw image bytes are stored as a base64-encoded string in the "data" field.

Product image represented as bytes directly or a URI.

JSON representation
 { 
 // Union field image 
can be only one of the following: 
 "uri" 
 : 
 string 
 , 
 "data" 
 : 
 string 
 // End of list of possible types for union field image 
. 
 } 
Fields

Union field image .

image can be only one of the following:

uri

string

Generally web-requestable URI.

data

string ( bytes format)

Raw bytes for the image.

A base64-encoded string.

Create a Mobile Website
View Site in Mobile | Classic
Share by: