I am trying to decode attachments from my layer in ArcGIS Online into a JPEG, and it keeps failing. I tried the workflow in this article (using BinaryDecoder then go into RasterReplacer), but I get an error saying BinaryDecoder (TextEncoderFactory): Invalid Base64 character '137'. Next I tried the workflow in this other article (using just the RasterReplacer) and set the format to JPEG / JPEG2000. Doing that results in the records being sent to the rejected port. With just the RasterReplacer, if I set the format to PNG I can get the images to come through, but I need a JPEG in order to write it to a Geospatial PDF.
Is there another step that I am missing, or some other way to write the attachment to a pdf?