Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

XSLT with Large Base 64 file in XML

I am working with a legacy system that uses an http post request with the body containing custom xml. This xml contains <file></file> tags with the base 64 encoding of the actual file. The existing system reads the xml, saves the file to cloud storage, then replaces the file tag with the uri to the file. The request can get as large as 100 Mb. After the file tag is changed, an xslt transformation is done and this final result is sent to another system.

I want to replace this legacy system entirely with Apigee. I see that to get large requests (>10Mb) request streaming has to be enabled. Is there a way to read in the request stream and when the file tag is detected it sends those bytes to some system like google cloud storage, when done it inserts the uri into the tag and sends the rest of the xml to the target system after doing an xslt transformation?

0 4 304
4 REPLIES 4