basically I want to download an image, convert it to stringio, and then insert it into a bytea column in my postgresql later.
Is stringio the right way to do this, or should you just use a tempfile module instead?
the script that downloads the image cannot connect to postgresql directly, it needs to pass the image data to a rabbitmq queue, and a celery worker that will then connect to the database and insert the images in the queue to the postgresql database.