Hi all

a while back in this post 
https://groups.google.com/d/msg/web2py/v6bB7PHa7f8/aZjaIby1fTgJ this was 
said:

>
> web2py uses b64encode/decode to store/retrieve data in blobs. Legacy 
> tables probably do not do it.
>
> You need you make your own custom adapter to override a method. For 
> example for PostgreSQL:
>
> from gluon.dal import ADAPTERS, UseDatabaseStoredFile,PostgreSQLAdapter
> class MyPostgresAdapter(PostgreSQLAdapter):
>      drivers = ('psycopg2',)
>      def parse_blob(self, value, field_type): return value
>
> ADAPTERS['mypostgres'] = MyPostgresAdapter
>
> db = DAL('mypostgres://.....')
>

Is this still possible with web2py 2.19.01?

Thanks,
Denes

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/ec0f7960-8d2b-4573-ba43-607741ca0ad2%40googlegroups.com.

Reply via email to