Skip to main content
Question

SQL Server varbinary


I'm trying to retrieve photos stored in a non-spatial SQL Server table in a varbinary(max) column, input37_bin:

 

 

The photos are JPEGs, and the varbinary column is recognised by FME as a field of type IMAGE.

 

I connected a RasterReplacer to the attribute with JPEG format but get "not recognised as a supported file format"

 

Any ideas greatly appreciated.

 

Ian

3 replies

takashi
Influencer
  • April 24, 2015
Hi Ian,

 

How about deleting "0x" in the head of the blob?

 

Takashi

takashi
Influencer
  • April 24, 2015
sorry, "0x" is just being displayed by the database management tool. It may not be the reason for the trouble.

 

If you connect a Logger or an Inspector to the reader feature type directly, how is the attribute value shown?

  • Author
  • April 27, 2015
Hi Takashi, thanks for the reply.

 

 

In answering your question, the answer presented itself: the 1st 2 rows of the table in question have <null> for the binary field (which shouldn't happen, but that's another story). The <null> is tripping up the RasterReplacer - if I filter <null> out, the rest of the binary fields are read in fine.

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