I am not very familiar with Python and have not used it in this context, but you could try:
import requests
import base64
response = requests.get(file_url)
encoded_string = base64.b64encode(response.content)
However, if the external system expects a file object instead of base64 string, you could also try using BytesIO:
import requests
from io import BytesIO
def processFile(fileUrl):
response = requests.get(fileUrl)
file_bytes = BytesIO(response.content)
external_system.upload(file_bytes)
Ultimately depends on how the external system is able to process and store files.