Boost C++ Libraries

PrevUpHomeNext

Struct image

boost::taar::mcp::image — An image content item; data is base64.

Synopsis

// In header: <boost/taar/mcp/content.hpp>


struct image {

  // public static functions
  static image from_bytes(std::string_view, std::string);

  // public data members
  std::string data;
  std::string mime_type;
};

Description

image public static functions

  1. static image from_bytes(std::string_view bytes, std::string mime_type);
    Build from raw bytes.

PrevUpHomeNext