Convert application/octet-stream to PDF

zeerodger27
Tera Contributor

On the case record we have attachment icon, and while preview the attachment it is showing an error but I want to preview the file before downloading is there any possibility?

 

In the attachment table, the file content type is application/octet-stream

 

zeerodger27_0-1744811640509.png

 

Can we change the content type to pdf?

 

1 ACCEPTED SOLUTION

Hello @zeerodger27 ,

 

Please submit a case on Now Support. There is either something wrong with ServiceNow's MIME type detection, or some of the PDFs that you are uploading have an improper internal format that prevents them from being recognized as PDF files.

 

Regards,

Robert

View solution in original post

9 REPLIES 9

Robert H
Mega Sage

Hello @zeerodger27 ,

 

The type octet-stream refers to binary files that are meant to be opened with a specific application. Unless you are absolutely sure that this particular file is a PDF (try downloading it and adding the extension ".PDF" and see if you can open it with a PDF viewer) you cannot "convert" that file because you won't know that type of file it actually is. Does the attachment have an extension?

 

Regards,

Robert

 

Attachment is having an extension of .pdf but content type is application/octet-stream

@zeerodger27 And does it open with a PDF viewer after downloading it?

Yes, it has content after downloading