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?


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.

View original
Did this help you find an answer to your question?

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
Enthusiast
Forum|alt.badge.img+31
  • Enthusiast
  • April 6, 2025
chrisatsafe wrote:

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
Evangelist
Forum|alt.badge.img+42
  • Evangelist
  • April 6, 2025
chrisatsafe wrote:

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 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings