Skip to main content

Is it possible to write an image from a jpeg url into a file geodatabase? In other words, I want to store images directly from a url into a geodatabase. I need to extract the image from the url and move that image into a geodatabase. Thank you!

Hi @shanezentner, the File Geodatabase format doesn't support saving image (raster) data directly, but it supports BLOB (Binary Large OBject) type so you can create the BLOB data for each JPEG image with the RasterExtractor transformer and then write it into a BLOB type field in the destination FGDB feature class.
You can restore the original image from the BLOB data with the RasterReplacer transformer.

In addition, if you use the HTTPCaller transformer (Response Body Encoding: Binary) to get the JPEG image from its URL, the response body could be saved into the BLOB type field directly without using the RasterExtractor.


@takashiI am trying to perform a similar task with a feature class stored in an ArcSDE geodatabase. I have reviewed some tasks from an API, and I have image data stored in it. I want to write this image data into the feature class. Will this workaround work for writing to an ArcSDE feature class?


@fme_can_do_it Yes, the BLOB workaround should also work for ArcSDE as well!


@fme_can_do_it You might also consider using the attachments feature of geodatabases, which you can enable for featureclasses.

Here is some information:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-attachments.htm

https://support.safe.com/hc/en-us/articles/25407508005645-Writing-ArcGIS-Geodatabase-Attachments