# Not able to get RAW byte stream of the attachment file using webclinet

**URL:** <https://community.servicem8.com/t/not-able-to-get-raw-byte-stream-of-the-attachment-file-using-webclinet/42>\
**Category:** API & SDK\
**Created:** [September 20, 2025, 11:22am UTC](https://community.servicem8.com/t/not-able-to-get-raw-byte-stream-of-the-attachment-file-using-webclinet/42 "2025-09-20T11:22:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [September 20, 2025, 11:22am UTC](https://community.servicem8.com/t/not-able-to-get-raw-byte-stream-of-the-attachment-file-using-webclinet/42/1 "2025-09-20T11:22:42Z")

</div>

**Originally posted by aizen**

So i tried to hit the [https://api.servicem8.com/api\_1.0/Attachment/{attachment\_id}.file](https://api.servicem8.com/api_1.0/Attachment/%7Battachment_id%7D.file) with webclient in my code. But the response i’m getting is null while this works perfetcly fine in postman. I want to know what headers should i use to get the correct byte stream of the attachment file
