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
kdedovesh wrote:
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)".
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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.