Question

Writing JPEG Image to Geodatabase

  • 28 April 2017
  • 1 reply
  • 16 views

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!


1 reply

Userlevel 2
Badge +17

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.

Reply