Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support blob field type / editor widget #5668

Open
abdullamuthana opened this issue Sep 19, 2024 · 6 comments
Open

Support blob field type / editor widget #5668

abdullamuthana opened this issue Sep 19, 2024 · 6 comments

Comments

@abdullamuthana
Copy link

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
@m-kuhn
Copy link
Member

m-kuhn commented Sep 19, 2024

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)

@abdullamuthana
Copy link
Author

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 ?

@m-kuhn
Copy link
Member

m-kuhn commented Sep 22, 2024

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.

@abdullamuthana
Copy link
Author

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 ?

@m-kuhn
Copy link
Member

m-kuhn commented Sep 26, 2024

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.

@nirvn nirvn changed the title Feature with BLOB type make Qfield Crash Support blob field type / editor widget Sep 29, 2024
@nirvn
Copy link
Member

nirvn commented Sep 29, 2024

This PR (#5691) fixes the crash; I've transformed this into an enhancement request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants