I've been using NASA's Mars Rover Photo web api with HttpService recently and I've gotten pretty far. I've managed to get images from specific cameras of the Curiousity Rover, but I can't figure out how to slap the image onto a decal.
API link: https://api.nasa.gov/mars-photos/api/v1/rovers/curiosity/photos?sol=1000&camera=fhaz&api_key=DEMO_KEY Photo link my script has managed to grab: https://mars.jpl.nasa.gov/msl-raw-images/proj/msl/redops/ods/surface/sol/01000/opgs/edr/fcam/FRB_486265257EDR_F0481570FHAZ00323M_.JPG
So far I've experimented and tried setting the decal texture directly to the link like this:
workspace.Part.Decal.Texture = [photo url]
but to no avail.
I thought I could use HttpService again and set the response from GetAsync as the texture property like so:
httpService = game:GetService("HttpService")
workspace.Part.Decal.Texture = httpService:GetAsync([photo url])
and nothing.
Am I doing something wrong? Is it a Roblox Security measure? I get if it's a security thing to not allow images from external sites, but there's gotta be a way I can upload the image to the Roblox library and use it from there if security is the case.
If there is any way I can get this image on Roblox pls tell, I will be forever grateful, I don't really want my work to go to waste. Thank you in advance :)

8 comments
also tell me if you need to see more code
I don't think it's possible to display non-uploaded images via script. You would have to upload the image to Roblox manually, which I doubt fits into what you want to do. I've never really worked with HttpService, but I seriously don't think Roblox would allow you to grab images from the internet without them having to go through Roblox moderation and all that... I like the concept though
Yeah, I get what you're saying. I'm still hoping there's some way to upload photos through script so moderation gets a look at the photos. Thanks
you can get the image data from a website using httpservice ig but aside from that /shrug
@royaltoe when I try to print the response from the image link it gives me some odd question mark character. I don't really no how to turn the image data into an actual usable image.
i'm not sure either sorry
I think you have to do this manually. There's no way to automatically submit images to moderation from a script as far as I know (otherwise there would be spam).
Suppose (although it's obviously unlikely) someone managed to compromise NASA's site (or any other site for that matter) and display inappopriate photos on it. Roblox would be in serious legal trouble for allowing these images to be displayed within a game on their platform.