Using an Esri ArcGIS Portal Feature Service Reader to read attachments, RasterReplacer fails on the attachment blob with INVALID_FEATURE_CANNOT_READ_BLOB.
Enable Attachments='Y' on the reader, the arcgisonline_attachment{} list is exposed, and arcgisonline_attachment{}.data contains data.
I am able to manually download jpg attachments from Portal successfully. I've tried all the image formats in RasterReplacer against the jpg in Portal.
Any help would be much appreciated. Thanks!
FME 2019.2.1.0, Portal 10.6.1
Best answer by andreaatsafe
Hi Andrea,
Thanks for the reply!
Yes, I have tried "JPEG (Joint Photographic Experts Group)", and the content_type is image/jpeg. (screenshot attached)
No problem, so it looks like the data is not in the standard JPEG blob format as JPEG blobs usually start with the byte marker FFD8, hence the RasterReplacer is rejecting it.
Try first using a BinaryDecoder set with the following parameters:
Encoding type to "Base64" and
Attribute to Decode to"arcgisonline_attachment{0}.data"
Then use the RasterReplacer and set it to "JPEG (Joint Photographic Experts Group)".
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Yes, I have tried "JPEG (Joint Photographic Experts Group)", and the content_type is image/jpeg. (screenshot attached)
No problem, so it looks like the data is not in the standard JPEG blob format as JPEG blobs usually start with the byte marker FFD8, hence the RasterReplacer is rejecting it.
Try first using a BinaryDecoder set with the following parameters:
Encoding type to "Base64" and
Attribute to Decode to"arcgisonline_attachment{0}.data"
Then use the RasterReplacer and set it to "JPEG (Joint Photographic Experts Group)".
No problem, so it looks like the data is not in the standard JPEG blob format as JPEG blobs usually start with the byte marker FFD8, hence the RasterReplacer is rejecting it.
Try first using a BinaryDecoder set with the following parameters:
Encoding type to "Base64" and
Attribute to Decode to"arcgisonline_attachment{0}.data"
Then use the RasterReplacer and set it to "JPEG (Joint Photographic Experts Group)".
No problem, so it looks like the data is not in the standard JPEG blob format as JPEG blobs usually start with the byte marker FFD8, hence the RasterReplacer is rejecting it.
Try first using a BinaryDecoder set with the following parameters:
Encoding type to "Base64" and
Attribute to Decode to"arcgisonline_attachment{0}.data"
Then use the RasterReplacer and set it to "JPEG (Joint Photographic Experts Group)".
I’m having the exact same issue as described here, and wondering if anyone can help!
In my case, I’ve put a Binary Decoder in as suggested by @andreaatsafe . Unfortunately the issue persists.
I’ve also tried using an AttributeFileWriter after the BinaryDecoder - this outputs jpeg files, but they are all non-readable/corrupt. Attachments on the ESRI portal are absolutely fine.