iOS Question Image View Breakage Problem In iPadOS 13.3?

RichardN

Well-Known Member
Licensed User
Longtime User
I just upgraded my iPad Pro test device to iPadOS 13.3.

In a very mature application (some 4 to 5 years old) some Image Views have encountered a 'breakage' problem where a black area is displayed instead of the image. The Image View in question is contained within a Custom Cell of a Table View with one or two other apparently random image views presenting the same symptoms.

My investigation led me to the underlying database. Using Sqlite Expert Pro I can see that the offending image data Blob had been populated with a BMP rather than a JPG format. The other images saved as Blob fields in JPG format continue to work just fine.

Now the iPadOS Image View accepts BMP, PNG, JPG and GIF right ? In any case when the data is read from the database via an InputStream it is assigned to a Bitmap variable regardless of the original Blob format.

In my case the fix is easy as I can assign JPG images to the few blob fields that appear to be causing the issue. However if all my database images were in BMP format I would have a major task on my hands.

Somewhere in the Blob > BitmapVar > ImageView.Bitmap process there is a problem with this update.
 

RichardN

Well-Known Member
Licensed User
Longtime User
Erel said:
You can try to read the bytes, write them to a file with File.WriteBytes and then load the bitmap from the file.

Sure.... In my case the workaround is really simple. However, if there is any developer out there with hundreds/thousands of BMP images stored as Blobs in a database he REALLY has my sympathy :eek::eek::eek:
 
Upvote 0
Top