def get(self, asset_id): asset = Asset.get_by_id(int(asset_id)) self.response.headers['Content-Type'] = 'image/jpeg' self.response.write(asset.asset_data)