what do you mean by:

"Those equals signs at the end are important." ?

Please elaborate - many thanks



On Friday, June 14, 2013 3:12:56 PM UTC-5, Derek wrote:
>
> It means your Base64 has incorrect padding. Those equals signs at the end 
> are important. You can try adding some or subtracting some to get the 
> correct padding.
> Chances are, your data is corrupted.
>
>
> On Friday, June 14, 2013 10:15:49 AM UTC-7, Auden RovelleQuartz wrote:
>>
>> Does anyone here know what this error means?
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>> 18.
>> 19.
>> 20.
>> 21.
>> 22.
>> 23.
>> 24.
>>
>> Traceback (most recent call last):
>>   File "/home/www-data/web2py/gluon/restricted.py", line 212, in restricted
>>     exec ccode in environment
>>   File "/home/www-data/web2py/applications/omniavx/controllers/public.py" 
>> <https://omniavx.com/admin/edit/omniavx/controllers/public.py>, line 849, in 
>> <module>
>>   File "/home/www-data/web2py/gluon/globals.py", line 194, in <lambda>
>>     self._caller = lambda f: f()
>>   File "/home/www-data/web2py/applications/omniavx/controllers/public.py" 
>> <https://omniavx.com/admin/edit/omniavx/controllers/public.py>, line 611, in 
>> signup002
>>     op_rec = db(db.imdb_100.id > 0).select()
>>   File "/home/www-data/web2py/gluon/dal.py", line 9958, in select
>>     return adapter.select(self.query,fields,attributes)
>>   File "/home/www-data/web2py/gluon/dal.py", line 1704, in select
>>     return self._select_aux(sql,fields,attributes)
>>   File "/home/www-data/web2py/gluon/dal.py", line 1685, in _select_aux
>>     return processor(rows,fields,self._colnames,cacheable=cacheable)
>>   File "/home/www-data/web2py/gluon/dal.py", line 2055, in parse
>>     value = self.parse_value(value,ft,blob_decode)
>>   File "/home/www-data/web2py/gluon/dal.py", line 1903, in parse_value
>>     return self.parsemap[key](value,field_type)
>>   File "/home/www-data/web2py/gluon/dal.py", line 1958, in parse_blob
>>     return base64.b64decode(str(value))
>>   File "/usr/lib/python2.5/base64.py", line 76, in b64decode
>>     raise TypeError(msg)
>> TypeError: Incorrect padding
>>
>>
>>
>> I am using PostgreSQL
>>
>>
>> Here is the model:
>>
>>
>> db.define_table("imdb_100",
>>     Field("color_image","upload",uploadfield="color_image_file"),
>>     Field("color_image_file","blob"),
>>     Field("option_01"),
>>     Field("option_02"),
>>     Field("option_03"),
>>     Field("option_04"),
>>     Field("rec_key"),
>>     )
>>
>> Thanks!
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to