Skip to main content
Solved

Problem with transformer AttributeDecompressor

  • November 30, 2016
  • 2 replies
  • 13 views

danilo_fme
Evangelist
Forum|alt.badge.img+45

Hello Team.

I have a first Workspace that create a json file after i compressed my Attribute.

When i read the json created on first workspace and try to descompresse , i receive this message: attribute could not be decompressed.

What is wrong?

Attached my templates files.

Best answer by david_r

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:

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

2 replies

david_r
Celebrity
  • Best Answer
  • November 30, 2016

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Author
  • Evangelist
  • November 30, 2016
david_r wrote:

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:

 

Hello @david_r, your suggestion was perfect!!! Really the attribute is works with the tranformer BinaryDecoder.

 

 

Thanks your help.

 

 

Danilo de Lima

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