1

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

13
  • 1
    To 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. Commented Jun 24, 2014 at 4:41
  • How are you storing said image in the database? Commented Jun 24, 2014 at 4:43
  • Storing Image as BLOB in DB @Darren Commented 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 type Commented Jun 24, 2014 at 5:27
  • Simply you can use TEXT type Commented Jun 24, 2014 at 5:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.