简体   繁体   中英

How to store images into database using php in android?

Hi i want to store images into database.I created table with fields like imgID tinyint, image blob. But i have a little bit confusion on it.Can any body tel me how can i do that? Thanks in advance.

I've always stored the image file name/location. And just linked to it ... without storing the image as a blob.

Its simpler: database won't get massive and functionally it does almost the same thing.

You should convert Images/Bitmaps into byte array and then add it to the database as blob. Read this post

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM