How to get image from MySQL DB using PHP & Json and show it in Android Grid view or image view
How to get the image from DB . I tried to generate JSON data using PHP from MySQl but it showing like this for the image "Image_Poster":null, rest of primitive types are am getting the fine output as JSON but Dono how to fix it for image ......
Can any one help for this
Thanks in Advance
Asked
Modified
11 years, 5 months ago
Viewed
877 times
Part
of PHP and Mobile Development Collectives
-
1To add image in json file there are two options. Either give the image link or convert the image data in base64 format and then send it through json.if-else-switch– if-else-switch2014-06-24 04:41:16 +00:00Commented Jun 24, 2014 at 4:41
-
How are you storing said image in the database?Darren– Darren2014-06-24 04:43:32 +00:00Commented Jun 24, 2014 at 4:43
-
Storing Image as BLOB in DB @Darrenuser3251646– user32516462014-06-24 05:25:36 +00:00Commented Jun 24, 2014 at 5:25
-
@sam:in DB under what datatype want to store the Image LINK (URL) in String or else any other typeuser3251646– user32516462014-06-24 05:27:05 +00:00Commented Jun 24, 2014 at 5:27
-
Simply you can use TEXT typeif-else-switch– if-else-switch2014-06-24 05:40:20 +00:00Commented Jun 24, 2014 at 5:40
|
Show 8 more comments