Skip to content

Instantly share code, notes, and snippets.

View Devnoob876's full-sized avatar
👨‍💻
now i am busy cuz i found a lotta projects and things to learn

Ahnaf Tahmid Devnoob876

👨‍💻
now i am busy cuz i found a lotta projects and things to learn
View GitHub Profile
@illume
illume / image_save.py
Created February 12, 2017 16:02
A tool for saving files to and from a postgresql db BYTEA table.
"""A tool for saving files to and from a postgresql db.
"""
import os
import sys
import argparse
import psycopg2
db_conn_str = "postgresql://username:password@localhost:5432/dbname"
create_table_stm = """
CREATE TABLE files (