MCPcopy Index your code
hub / github.com/modelscope/modelscope / decode_base64_to_binary

Function decode_base64_to_binary

modelscope/utils/service_utils.py:84–87  ·  view source on GitHub ↗
(encoding)

Source from the content-addressed store, hash-verified

82
83
84def decode_base64_to_binary(encoding):
85 extension = get_extension(encoding)
86 data = encoding.split(',')[1]
87 return base64.b64decode(data), extension
88
89
90def decode_base64_to_image(encoding):

Callers 1

service_data_decoderFunction · 0.85

Calls 1

get_extensionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…