[progress Communities] [progress Openedge Abl] Forum Post: Re: Read Clob From Xml Into...

  • Thread starter Thread starter PeterWokke
  • Start date Start date
Status
Not open for further replies.
P

PeterWokke

Guest
Hi Johan, I have used this to get images from an XML and save them to files. when "DigitalImageBinaryObject" then do: /* cMimeCode = hXImageLine:get-attribute ("mimeCode"). cFileName = hXImageLine:get-attribute ("fileName"). iEncoding = integer(hXImageLine:get-attribute ("encodingCode")). */ hXImageLine:get-child (hXtext,1). /*message hXtext:node-value view-as alert-box.*/ /* Save the string to a longchar to handle image larger than 32000 bytes */ hXtext:node-value-to-longchar ( decdlngc ). /* Save the image bytes to a memptr */ decdmptr = base64-decode(decdlngc). /* optionally create the image file */ copy-lob from decdmptr to file "C:\Development\Images\" + cProduct + "-" + cFileName + ".jpg". iImages = iImages + 1. end. Hope the base64-decode can help you. Peter

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