MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / net_download_file_binary

Function net_download_file_binary

PySimpleGUI/PySimpleGUI.py:23510–23520  ·  view source on GitHub ↗

Download a binary file located at a URL on the network. Can also use the plain download_file to accomplish :param url: The address of the file :type url: str :return: The file contents. Returns None if an error happened :rtype: None | bytes

(url)

Source from the content-addressed store, hash-verified

23508
23509
23510def net_download_file_binary(url):
23511 """
23512 Download a binary file located at a URL on the network. Can also use the plain download_file to accomplish
23513 :param url: The address of the file
23514 :type url: str
23515 :return: The file contents. Returns None if an error happened
23516 :rtype: None | bytes
23517 """
23518 data = net_download_file(url, encoding='')
23519
23520 return data
23521
23522
23523

Callers

nothing calls this directly

Calls 1

net_download_fileFunction · 0.85

Tested by

no test coverage detected