From 4e25c844978406ea43cba1b266903968ab125361 Mon Sep 17 00:00:00 2001 From: Anders Bech Borchersen Date: Thu, 22 Feb 2018 21:05:50 +0100 Subject: [PATCH] added support for byte objects Added missing support for Python byte objects to binary entity. This is usefull for storing numpy arrays in table storage. --- azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py b/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py index 6767337..d49725b 100644 --- a/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py +++ b/azure-cosmosdb-table/azure/cosmosdb/table/_serialization.py @@ -131,6 +131,7 @@ def _to_entity_none(value): datetime: _to_entity_datetime, float: _to_entity_float, str: _to_entity_str, + byte: _to_entity_binary, } # Conversion from Edm type to a function which returns a tuple of the