← Back to team overview

openerp-india team mailing list archive

[Bug 948770] Re: image in binary field is not displayed in openerp server 6.03 but the image is displayed in openerp server in development PC

 

There is a bug which i thinks it comes from above problem. In Product
Form, i attaches a file txt and then save it ok. But when i opens it, it
shows the error like this:

Internal Server Error

{"message": "OpenERP WebClient Error", "code": 300, "data": {"debug":
"Client Traceback (most recent call last):\n File \"C:\\Program
Files\\OpenERP
6.1\\Server\\server\\openerp\\addons\\web\\common\\http.py\", line 260,
in dispatch\n File \"C:\\Program Files\\OpenERP
6.1\\Server\\server\\openerp\\addons\\web\\controllers\\main.py\", line
1419, in saveas\n File \"base64.pyo\", line 76, in b64decode\nTypeError:
Incorrect padding\n", "type": "client_exception"}}

I thinks there are some troubles with base64 that make the binary field
can be get or show in the Form view.

Many thanks to any help!

** Changed in: openobject-server
       Status: Invalid => New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/948770

Title:
  image in binary field is not displayed in openerp server 6.03 but the
  image is displayed in openerp server in development PC

Status in OpenERP Server:
  New

Bug description:
  On Openerp-client 6.03 image field is not displayed.  When upload a picture on the openerp-server 6.03, binary field value was stored correctly.  But when display the image openerp-server or openerp-client does not display the image.
  But restored the database and run the code on local server the image displayed normally.
  I set debug_level to debug_rpc on 2 PC and compared log of the photo field of employee. 
  On the 64 bit server :
  [2012-03-07 12:12:46,283][tpp4erpdb] DEBUG_RPC_ANSWER:result:  'photo': 'x2f396a2f34414151536b5a4a5267414241674541554142514141442f3451365352141414141414251414b414138414641415........'
  On the local PC

  [2012-03-07 13:53:57,740][tpp4erpdb_20120307] DEBUG_RPC_ANSWER:result:
  'photo':
  '/9j/4AAQSkZJRgABAgEAUABQAAD/4Q6SRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUA\nAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAcAAAAcgEyAAIAAAAUAAAAjod

  Image data of binary field is different. On the 64 bit server  the data is same as  data selecting the field in postgres psql. 
  Please kindly help correct this problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/948770/+subscriptions


References