Skip to main content
Solved

I have photos stored in a database. Normally, I simply use an AttributeFileWriter to extract the photo. However, I want to use the JPEG Writer. Can JPEG Writer be used from an Attribute?

  • April 15, 2022
  • 4 replies
  • 196 views

bellrosemike
Contributor

I wish to use the JPEG writer rather than the attribute file writer, because I want to add EXIF data to the image that doesn't exist in the original BLOB. I do not see a way to add this EXIF information when simply using an attribute File Writer.

Best answer by chrisatsafe

Hi @bellrosemike​ ,

 

Instead of using the AttributeFileWriter, try the RasterReplacer and connect it to a JPEG writer. The RasterReplacer decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster.

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.

4 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • April 18, 2022

Hi @bellrosemike​ ,

 

Instead of using the AttributeFileWriter, try the RasterReplacer and connect it to a JPEG writer. The RasterReplacer decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster.


bellrosemike
Contributor
  • Author
  • Contributor
  • April 26, 2022

Thank you Chris, that method worked perfectly. I didn't even know that the RasterReplacer transformer existed, but it did exactly what I needed.


crutledge
Influencer
Forum|alt.badge.img+43
  • Influencer
  • April 6, 2025

Hi @bellrosemike​ ,

 

Instead of using the AttributeFileWriter, try the RasterReplacer and connect it to a JPEG writer. The RasterReplacer decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster.

Great tip. Still Valid. Great way to deal with the _response_body of an HTTPCaller when the API returns an imageblob.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • April 6, 2025

Hi @bellrosemike​ ,

 

Instead of using the AttributeFileWriter, try the RasterReplacer and connect it to a JPEG writer. The RasterReplacer decodes a binary attribute containing encoded rasters stored as Blobs, replacing the feature’s geometry with the decoded raster.

Great solution ​@chrisatsafe