Support blob field type / editor widget
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
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
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)
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 ?
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 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 ?
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.
This PR (https://github.com/opengisch/QField/pull/5691) fixes the crash; I've transformed this into an enhancement request.