I want to insert images to oracle DB 11g, the table has a field Blob for images, i tried with insert with this code in views
< Blockquote
form = CarForm(request.POST)
if form.is_valid():
pho_matricule = form.cleaned_data.get(“pho_matricule”)
pho_date = form.cleaned_data.get(“pho_date”)
pho_employer= form.cleaned_data.get(“pho_employer”)
pho_photos = form.cleaned_data.get(“pho_photos”)
conn = connection()
cursor = conn.cursor()
cursor.execute(“INSERT INTO GRHM.h_photos VALUES (:pho_matricule :pho_date, :pho_employer, :pho_photos)”, [pho_matricule, pho_date,pho_employer,pho_photos])
conn.commit()
conn.close()
Blockquote
But this wont work , could you please help