Blob provide a clear benefit on devices too. It allows to reduce the size of the database when you have large objects to store (not necessarily pictures. It can be geographic shapes like in spatialite for example or any other large object) and these objects can also be deserialised more quickly than if beeing stored as plain text objects (like json or xml) Nowadays, most developpers actually use byte buffers to handle objects communication and storage (see protobuf, thrift, avro, messagepack...) on the server AND on the device. Competitors frameworks like flutter support BLOB SQLite type just well bytheway
On Wednesday, April 3, 2019 at 5:49:33 AM UTC+2, Shai Almog wrote: > > It's a bit problematic to implement that API on iOS and most developers > used workarounds since blobs aren't as necessary on devices. > Unlike servers where the DB is distributed/clustered. On a device a blob > provides no benefit and can impact performance. You are better off storing > a file URI. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/1e1a1ad9-fbd8-4a22-b393-64e570d4e25d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.