Binaries manager may encode content using an algorithm that change the size. We should provide the original length to the SQL blob instead of return the binary length.
To achieve this, implementer should contribute a new Binary implementation that should implement the computeLength method
/** + * Compute length on demand, default implementation only works if + * the file referenced contains the binary original content. If you're contributing + * a binary type, you should adapt this in case you're encoding the content. + * + * This method is only used when users make a direct access to the binary. + * Persisted blobs don't use that API. + * + * @since 5.7.3 + */ + protected long computeLength() {
- is required by
-
NXP-14256 Binary Manager doesn't need to know file length
- Resolved