[ 
https://issues.apache.org/jira/browse/AVRO-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948815#comment-16948815
 ] 

Richard N. Hillegas commented on AVRO-2588:
-------------------------------------------

Thanks. Adding a binaryData.rewind() call fixes my problem.

> DatumWriter does not serialize bytes-typed fields
> -------------------------------------------------
>
>                 Key: AVRO-2588
>                 URL: https://issues.apache.org/jira/browse/AVRO-2588
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.1
>            Reporter: Richard N. Hillegas
>            Priority: Major
>         Attachments: avroByteSerialization.tar
>
>
> When you use a DatumWriter to serialize a record, fields of "bytes" type are 
> NOT serialized. You have to hand-serialize these fields using 
> BinaryEncoder.writeBytes().
> I will attach a sample program which demonstrates this problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to