QField icon indicating copy to clipboard operation
QField copied to clipboard

Support blob field type / editor widget

Open abdullamuthana opened this issue 1 year ago • 6 comments

Describe the issue

so i have one layer in Qgis which is connected to postgres database and a field which is BLOB Type so it's normally when i view the feature that has this BLOB image , also it's normally to view the feature in Qgis on a layer that is GPKG it's also viewed without any problem, but same feature when i tried to view it on Qfield the app directly crash and close by itself

sample.zip

Expected behavior

the action should let me see the image that is available with the feature

Observed behavior

when i want to open the attribute of this feature Qfield crash and close

QGIS (please complete the following information)

  • OS: [e.g. Windows]
  • QGIS Version [3.32.3-Lima]

QField (please complete the following information)

  • Device: [Iphone 13 Pro Max]
  • OS: [IOS 17.6.1]
  • QField version: 3.4.1 - ebo (c28cef v3.4.1)

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: IDK
  • Problem can be reliably reproduced, doesn't happen randomly: IDK
  • Problem happens with all files and projects, not only some files or projects: Yes

abdullamuthana avatar Sep 19 '24 09:09 abdullamuthana

QField does not support BLOB field types and will fallback to simple text edit for any unsupported type.

There are two things here therefore:

  • It shouldn't crash (bug)
  • Support field type for BLOB (enhancement)

m-kuhn avatar Sep 19 '24 15:09 m-kuhn

QField does not support BLOB field types and will fallback to simple text edit for any unsupported type.

There are two things here therefore:

  • It shouldn't crash (bug)
  • Support field type for BLOB (enhancement)

so now what is the best way to do field that store attachment like ( image ) because i don't want the image to be saved in folder path i wan't to store it on the GPKG ?

abdullamuthana avatar Sep 22 '24 06:09 abdullamuthana

QField does not support BLOB field types and will fallback to simple text edit for any unsupported type. There are two things here therefore:

  • It shouldn't crash (bug)
  • Support field type for BLOB (enhancement)

so now what is the best way to do field that store attachment like ( image ) because i don't want the image to be saved in folder path i wan't to store it on the GPKG ?

This is not possible right now. Images are always stored in separate files.

m-kuhn avatar Sep 22 '24 08:09 m-kuhn

so did the Qfield will support BLOB next updates ?

QField does not support BLOB field types and will fallback to simple text edit for any unsupported type. There are two things here therefore:

  • It shouldn't crash (bug)
  • Support field type for BLOB (enhancement)

so now what is the best way to do field that store attachment like ( image ) because i don't want the image to be saved in folder path i wan't to store it on the GPKG ?

This is not possible right now. Images are always stored in separate files.

so it is possible that qfield will support BLOB next updates ?

abdullamuthana avatar Sep 25 '24 21:09 abdullamuthana

so did the Qfield will support BLOB next updates ?

QField does not support BLOB field types and will fallback to simple text edit for any unsupported type. There are two things here therefore:

  • It shouldn't crash (bug)
  • Support field type for BLOB (enhancement)

so now what is the best way to do field that store attachment like ( image ) because i don't want the image to be saved in folder path i wan't to store it on the GPKG ?

This is not possible right now. Images are always stored in separate files.

so it is possible that qfield will support BLOB next updates ?

there is nothing planned so far, you can reach out to the development team if you'd like to fund this.

m-kuhn avatar Sep 26 '24 06:09 m-kuhn

This PR (https://github.com/opengisch/QField/pull/5691) fixes the crash; I've transformed this into an enhancement request.

nirvn avatar Sep 29 '24 16:09 nirvn