infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
issue with encoding in 5.8
Elisha Gould
Hi,
I've noticed in 5.8 the encoding handled differently to 5.6.
We currently have a 5.6 site that takes a multipart http message using the IB. This contains a pdf document.
in 5.6 we could just use getmsg to grab the message and ibmimecreate to grab the document and header information.
In 5.8 when this is attempted ibmimecreate will fail if the NetConfig encoding is set to binary.
If it is set to ASCII or UTF-8 then it grabs the document and saves it, but the encoding of the file is wrong, so it cannot be read.
has anyone else had issues with ibmimecreate and 5.8?
Otherwise does anyone know how to fix the enconding so that it goes back to the correct format?
Find more posts tagged with
Clovertech
Comments
Elisha Gould
For reference in regards to a fix this issue under 5.8.
For the ibmime library to work correctly, the thread encoding needs to be set to ASCII or UTF8.
To get the the data in the correct encoding, the encoding needs to be converted to the 'identity' encoding.
ie something equivalent to the following:
set myMimeMsg [msgget $aMsgId]
set myMimeHandle [ibmimecreate $myMimeMsg]
set myMimeAttachment [ibpartcontentget $myMimeHandle 1]
set myData [encoding convertto identity $myMimeAttachment]
#To save a file:
set myFd [open $myFile w]
fconfigure $myFd -translation binary
puts -nonewline $myFd $myData
close $myFd
Jim Kosloskey
Elisha,
Thanks - that is valuable information.