[progress Communities] [progress Openedge Abl] Forum Post: Re: Add "file" Into Xml

  • Thread starter Thread starter xjg
  • Start date Start date
Status
Not open for further replies.
X

xjg

Guest
Hello Brian, Thanks for your quick response. I've done something as follows: Sending side: COPY-LOB FROM FILE 'myfile.pdf' TO mData. (mData is a memptr) lv_pdfFile = BASE64-ENCODE(mData). (lv_pdfFile is a longchar) COPY-LOB FROM lv_pdfFile TO mb64Data. (mb64Data is a memptr) .... hxdoc:CREATE-NODE(hNoderefValue, "", "CDATA-SECTION"). hNoderefChild2:APPEND-CHILD(hNoderefValue). hNoderefValue:MEMPTR-TO-NODE-VALUE(mb64Data). Receiving side: ... hNodeAttach_cont:NODE-VALUE-TO-MEMPTR(hNodeContent). (hNodeContent is a memptr) COPY-LOB FROM hNodeContent to lv_pdfFile . (lv_pdfFile is memptr and lv_pdfFile is a longchar) lv_mData = BASE64-DECODE(lv_pdfFile). (lv_mData is a memptr) COPY-LOB FROM lv_mData to FILE "myreceivedfile.pdf". Still receiving the error "Invalid character data found in MEMPTR for codepage ISO8859-1" in the yellow-highlighted line I've tried to use the CONVERT, NO-CONVERT expressions without any success.. Any idea?

Continue reading...
 
Status
Not open for further replies.
Back
Top