Getting 500Error when .dat file is uploaded

Hi,
Getting 500 server Error when .dat file is uploaded in a Post request.

This is the Post request where .dat file is being send
.
exec(http(requestName=“requet_23”)
.post(“https:/edit.api/document/hbt/v1/document/upload”)
.headers(headers_21)
.body(RawFileBody(filepath=“C:/gatling/abc.dat”))

below is the content of .dat file

Please let me know if I can send the .dat file like above.

Hi,
Please Help…!

Have you specified a content-type header?
Have you checked the server logs for the cause of the 500 error?