class ActiveLdap::Schema::Syntaxes::JPEG

def binary?

def binary?
  true
end

def validate_normalized_value(value, original_value)

def validate_normalized_value(value, original_value)
  if value.unpack("n")[0] == 0xffd8
    nil
  else
    _("invalid JPEG format")
  end
end