Android Question access picture using jRDC

Discussion in 'Android Questions' started by T.T Wang, Jul 29, 2019.

  1. T.T Wang

    T.T Wang Member Licensed User

    could some kind man show a sample that upload or dowload from MySQL by jRDC?
  2. Erel

    Erel Administrator Staff Member Licensed User

    There are three helper subs in DBRequestManager: FileToBytes (not really needed as you can now use File.ReadBytes), ImageToBytes and BytesToImage.

    The image should be stored in a blob field in the database. You should retrieve it and then do something like:
    Dim bytes() As Byte = Row(1'assuming that the image is in the second column.
    Dim img As Bitmap = req.BytesToImage(bytes)
    José J. Aguilar likes this.
  3. T.T Wang

    T.T Wang Member Licensed User

    Thank you! I'll have a try
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice