With open ('media file from data table', 'r') Errors

Hey Phil,

Thank you for the reply.

When I use the (file_media.get_bytes(), ‘r’) function. It tries to place the entire contents of the file as the ‘name’, and if I use the (file_media.name, ‘r’) I get a cannot find file with this name.

Is there a way to pass the file as an object? or should I make a file locally in the /tmp folder and open it that way?