Public bug reported:

If you fetch an email message using imap:fetch-message and this email
contains a binary attachment, the attachment data in the email:content element 
in not  of type xs:base64Binary. It is a string with the base64 encoded data 
including line breaks and spaces.

To use the binary data it must first be manually cleaned with an
expression like:

fn:replace($attachment/text(),"[^a-zA-Z0-9\+/=]","") cast as
xs:base64Binary

There should be a helper function to receive the base64Binary from an
email attachment.

** Affects: zorba
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1016397

Title:
  helper function to get base64Binary attachment data from emails

Status in Zorba - The XQuery Processor:
  New

Bug description:
  If you fetch an email message using imap:fetch-message and this email
  contains a binary attachment, the attachment data in the email:content 
element 
  in not  of type xs:base64Binary. It is a string with the base64 encoded data 
including line breaks and spaces.

  To use the binary data it must first be manually cleaned with an
  expression like:

  fn:replace($attachment/text(),"[^a-zA-Z0-9\+/=]","") cast as
  xs:base64Binary

  There should be a helper function to receive the base64Binary from an
  email attachment.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1016397/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to