1

I have an image stored as a blob in an MySQL database. Now I want to get this image over to my iOS app so that I could present it on the app.

  1. How to use the blob in the PHP and how to return it when a request is made?
  2. What code should I use to fetch the picture from the server?

Any example / tutorial / answer would really help, so thanks in advanced!

byteSlayer
  • 1,806
  • 5
  • 18
  • 36

1 Answers1

0

You need to fetch blob content from mysql table and then do base64_encode. pass encoded image data to your iOS app and then decode at iOS level

GBD
  • 15,847
  • 2
  • 46
  • 50