[Android] Do not decode picture blobs over 500k length
Ludovic Fauvet
etix at videolan.org
Fri Oct 19 13:40:36 CEST 2012
On Fri, Oct 19, 2012 at 1:28 PM, XilasZ <xilasz at gmail.com> wrote:
>
>> > - if (blob != null && blob.length > 1) {
>> > + if (blob != null && blob.length > 1 && blob.length <
>> > 500000) {
>>
>> You should rather remove the blob. If we're not going to use it at all
>> what's the point of keeping it in the database?
>>
>
> It should not be put in the database in the first place :p
Of course, but it's too late now, many people have blobs of more than
500Kb in their database, that's a fact. And for these people, some of
them are maybe low on storage space and we should do something for
them.
--
Ludovic Fauvet
More information about the Android
mailing list