Load image from Colab server to display in Anvil client

It works like this to retrieve the image *.png from Colab

Server side

import anvil.media
import os

@anvil.server.callable
def get_png_image(file_name):
    with open(file_name, 'rb') as f:
        return anvil.BlobMedia("image/png", f.read())

Client side

    # Client side code
    def check_dxf_1_click(self, **event_args):
        """This method is called when the button is clicked"""
        image_bytes = anvil.server.call('get_png_image', "dxf_for_ezdxf.png")
        self.image_1.source = image_bytes