How to use the script get the image byte info?

I find the if the Image no alpha,the Blender will reader the Alpha to 1.0,So when i use the Blend Mode to the “Alpha Blend”,The eevee render will show unnormal…So i need get the image is have the RGBA Channel?!..So how to use the script get the image byte info?
Thank you:)!
image