We have uploaded 0kB .xhtml file as binary component in Tridion and are trying to publish the binary using AddBinary.
Engine.PublishingContext.RenderedItem.AddBinary(binaryComponent, structureGroup)
When we publish the binary it is getting deployed as a 1kB file with NUL character.
Our requirement is to publish this as empty binary of 0kB.
Thanks for the help in advance.