How to get a png/jpg image instead of a iix?

rldejesusm
Mega Guru

Using gr.getDisplayValue(item.photo) I'm getting an .iix file outputted in my html. I want this file to be outputted as either .png or .jpg.

2 ACCEPTED SOLUTIONS

John Ping
Mega Guru

I ran into this with a background image on a Service Portal page. When I opened the .iix file in Irfanview, it told me it was a PNG and offered to change the extension. That worked for me! I went back and tried saving the message directly with a .png extension, and that worked too.


View solution in original post

rldejesusm
Mega Guru

Hey everyone,

I wanted to post a final update and thank you all for the different solutions and ideas you shared. Your input was incredibly helpful!

As a lot of you have shared the solution was simple.

 

After I downloaded the .iix file that ServiceNow was giving me, I tried just manually renaming it on my computer. I changed the file extension from .iix back to its original format (in my scenario, customers were only uploading .png and .jpg), and it worked perfectly! The file opened as a proper image without any issues. 

 

The key is that you have to know what the original file type was. But if you do, a simple rename is all it takes to get your image back. If you don't know the original file format, and you try renaming the .iix file wrapper format into a non matching file format this solution will not work.

 

Thanks again for all the help! Hope this manual trick helps someone else looking for a quick fix.

View solution in original post

17 REPLIES 17

SHUBHAM KUMAR S
Tera Contributor

Just rename the extension from .iix to .png or .jpg

StephList
ServiceNow Employee
ServiceNow Employee

Open the file in Firefox browser, in the tab name you will see the file format, in my case it was jpg.

rldejesusm
Mega Guru

Hey everyone,

I wanted to post a final update and thank you all for the different solutions and ideas you shared. Your input was incredibly helpful!

As a lot of you have shared the solution was simple.

 

After I downloaded the .iix file that ServiceNow was giving me, I tried just manually renaming it on my computer. I changed the file extension from .iix back to its original format (in my scenario, customers were only uploading .png and .jpg), and it worked perfectly! The file opened as a proper image without any issues. 

 

The key is that you have to know what the original file type was. But if you do, a simple rename is all it takes to get your image back. If you don't know the original file format, and you try renaming the .iix file wrapper format into a non matching file format this solution will not work.

 

Thanks again for all the help! Hope this manual trick helps someone else looking for a quick fix.