Protocol

Blob Link

Reference a blob within the BAQ network.

{
  "hash": "8456fcfc74e54a91aa7729d7c3d52bfc3406aca5d4ec49f087c5b9b45a686e99",
  "type": "image/jpeg",
  "name": "vacation.jpg"
}

This object can appear within the record content, depending on the record type.

Properties

  • hash BlobHash

    • SHA256 hash of the blob content.
  • type string

    • MIME type to use when serving the blob.
  • name string

    • Filename to use when serving the blob.

The same blob may be used at different places within the same record. A different name can be used in that case. A different type is allowed as well for the rare cases where it might make sense.

{
  "profile_avatar": {
    "hash": "8456fcfc74e54a91aa7729d7c3d52bfc3406aca5d4ec49f087c5b9b45a686e99",
    "type": "image/jpeg",
    "name": "avatar.jpg"
  },
  "profile_banner": {
    "hash": "8456fcfc74e54a91aa7729d7c3d52bfc3406aca5d4ec49f087c5b9b45a686e99",
    "type": "image/jpeg",
    "name": "banner.jpg"
  }
}
© 2024 Quentez