‎2009 Aug 03 4:51 PM
Hi,
We have a requirement to upload a document (any common file format, e.g. Word, Excel, PDF etc) into SAP then forward to a document management system which expects the document content to be submitted via a web service as a byte array in format base64Binary.
Can we simply use class CL_GUI_FRONTEND_SERVICES->GUI_UPLOAD specifying the file format as 'BIN' or do we need to do anything first to process the file content?
Thanks,
Alan
‎2009 Aug 06 2:47 AM
Hi,
you need to preform additional step. base64 is special type of coding data (check wikipedia for more info about base64). base64 is used in HTTP protocol. Hence you can find methods for base64 encoding/decoding in class CL_HTTP_UTILITY. Those methods work with strings.
Cheers