Save Blob data

3 views
Skip to first unread message

Fabio Lenzarini

unread,
Dec 22, 2025, 6:17:56 AM (yesterday) Dec 22
to Jam.py Users Mailing List
hi all,
in Jam.py, how to save Blob in DB?
I've only Text, Data and Integer.. but not binary.

Also image are saved as a text.. :-(

Thanks for any suggestion
Ciao
Fabio

Dean D. Babic

unread,
Dec 22, 2025, 6:35:14 AM (yesterday) Dec 22
to Jam.py Users Mailing List
Save an IMAGE to OS folder.
Jam never saved any blobs into the DB.
And yes, camera is working well on:
https://jampy.pythonanywhere.com/

Customers click on photo ;) Try it :)

Fabio Lenzarini

unread,
Dec 22, 2025, 7:25:03 AM (yesterday) Dec 22
to Dean D. Babic, Jam.py Users Mailing List
I am designing an application in which data security is very important.
I would like to encrypt some texts before saving them in the database using the “cryptography” library.
The library requires a key generated by:
import os
salt = os.urandom(16)
which returns a Blob to be saved in the database... but I don't know how.

--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jam-py/13b2bc3e-7663-4e9c-ab9c-e10d1e225051n%40googlegroups.com.

Fabio Lenzarini

unread,
Dec 22, 2025, 7:52:40 AM (24 hours ago) Dec 22
to Dean D. Babic, Jam.py Users Mailing List
Found:
salt_b64 = base64.b64encode(salt).decode()
Reply all
Reply to author
Forward
0 new messages