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

Madhurya
Kilo Contributor

Hi , 

This didn't work for me, I have followed the same as you said downloaded the iix file and changed into svg format while I am trying to upload the svg format, then I got this error. Please help me out here. find_real_file.png

On July, 18, 2022:

  • John Ping's solution worked for me in SN Developer Instance.
    • changed .iix extension to .png
  • Asd's solution did not work for me in SN Developer Instance.

It's help me a lot. Thank you

jdestef
Tera Contributor

Did not  work at all.  Changing a file extension does not somehow change it's actual format.  I downloaded an iix, renamed it to svg, then tried to use it as a logo in Walk-Up and yeah - didn't work.

Randell Duggins
Tera Contributor

On July, 18, 2022:

  • John Ping's solution worked for me in SN Developer Instance.
    • changed .iix extension to .png
  • Asd's solution did not work for me in SN Developer Instance.