Android Question Strange CursorIndexOutOfBoundsException

Discussion in 'Android Questions' started by uniplan, Mar 12, 2019.

  1. uniplan

    uniplan Active Member Licensed User

    I have a strange problem (only on any smartphone) when i try to get value from resultset when inside result set i keep the blob column.

    android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1

    at this point
    dim value as string = rst.GetString2(0)
    or for blob
    Dim Buffer() As Byte
    Buffer = rst.GetBlob2(0)

    If i do my select without blob column...i haven't this problem.
    I repeat that this problem show only on some smarthpone (with same app and same version)
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    Make sure that the blobs sizes are less than 1mb. This is an Android limit.
  3. uniplan

    uniplan Active Member Licensed User

    Ok, thank you Erel
  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