Android Question save image in mysql

sight

Member
Licensed User
Longtime User
How to save an image in a blob field in mysql? Please exemplify in B4A.
 

KMatle

Expert
Licensed User
Longtime User
Image -> bytes -> Base64 > longtext (or medium). I prefer this because it's easy to handle and you can add encryption, etc. very easy. You will need that "something2bytes" conversation very often like if you want to store an imagebto a file. Search for "bytes to file" for an example.
 
Upvote 0
Top