# Downloading Images? Imagewrapper?

**URL:** <https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 30, 2015, 8:09pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945 "2015-03-30T20:09:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [March 30, 2015, 8:09pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/1 "2015-03-30T20:09:58Z")

</div>

I’m working on something that requires me to download a lot of images off the web, I’m using the ImageWrapper class to make them into JPEGs and put them on textures in the environment. It works fine on desktop, but on Android (specifically GearVR) they just never download. Any idea why not or advice for testing what’s causing it specifically?

---

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [April 3, 2015, 5:12pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/2 "2015-04-03T17:12:37Z")

</div>

I have to bump this, it’s become a large problem for me as I need to get my Gear iteration going asap. Is there any Unreal dev that could help me with figuring out the issue of downloading images on mobile?

---

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [April 27, 2015, 7:53pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/3 "2015-04-27T19:53:18Z")

</div>

Any devs I could talk to about this at least?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d7940737](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d7940737](https://forums.unrealengine.com/u/anonymous_user_d7940737)\
**Post date:** [May 1, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/4 "2015-05-01T18:55:33Z")

</div>

Hi spire8989,

Can you expound a bit on your problem? Are you saying your project downloads images from the internet, makes them into jpgs and puts them on the Android?

---

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [May 20, 2015, 7:14pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/5 "2015-05-20T19:14:14Z")

</div>

I’m not sure how I missed that you responded to this, but yes.

I’m working from my PC version which downloads a JPEG and uses ImageWrapper with the TArray\<uint8\> content and UTexture2D::CreateTransient to make a texture from it which is placed on a plane in-game.

This all works just dandy on PC, but when converting the same application to Android it simply fails all of the ImageWrapper steps, leading me to believe ImageWrapper may not be working on mobile?

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [May 20, 2015, 8:39pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/6 "2015-05-20T20:39:13Z")

</div>

Hi spire8989,

ImageWrapper works on Android fine for me. It is used in the Download Image Blueprint node (see UAsyncTaskDownloadImage::HandleImageRequest). Here is my level blueprint to test it:

 ![dynamictexture.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/f/4fa6e1eff103185cab9a4492c3eeb8ca81b5c553.png)

I created a cube in the scene to receive the dynamic material created from a parent material with a texture parameter DynBaseTexture. MyDynamicMat is a variable of type Dynamic Material Instance.

---

<div class="post-metadata">

**Author:** ![Thoth\_FN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoth\_FN](https://forums.unrealengine.com/u/Thoth_FN)\
**Post date:** [May 21, 2015, 10:07am UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/7 "2015-05-21T10:07:10Z")

</div>

Thanks for the response, that’s in 4.8, right? I don’t know why it’d make a difference compared to the one I wrote myself, but I’ll update my project and test it out.

I don’t see why it would matter, but the fact that it’s a GearVR app wouldn’t make a difference, right? Unless GearVR requires power of 2 textures while other Android apps don’t? And if so, is there an easy way to take the texture returned and resize it, the images are square, but not a power of 2.

**Edit: The issue was that I was attempting to pull images from an https address. The images are also hosted on http so I just switched it. I didn’t bother testing this which I saw elsewhere: "In the Project Settings dialog, look in the Engine - Network section for Libcurl Verify Peer checkbox. Try turning it off and see if it works."**

---

<div class="post-metadata">

**Author:** ![Ixiguis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Post date:** [July 20, 2015, 10:35pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/8 "2015-07-20T22:35:16Z")

</div>

For further reference: I was also having issues with images not loading on Android (I’m also using the Download Image node). All the images I was trying to download were from wikimedia (https).

Unchecking “Verify Peer” solved the problem.

Also, I don’t know if this is necessary, but I also added an extra permission on Project Settings -\> Platforms / Android: android.permission.INTERNET. Might be needed when you publish the app.

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [July 21, 2015, 4:02pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/9 "2015-07-21T16:02:41Z")

</div>

android.permission.INTERNET is set by default. If you want to see what is set for your project, look at AndroidManifest.xml in your project’s Intermediate/Android/APK directory after packaging.

---

<div class="post-metadata">

**Author:** ![cgiteach](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cgiteach/32/559818_2.png) [@cgiteach](https://forums.unrealengine.com/u/cgiteach)\
**Post date:** [September 14, 2016, 6:18am UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/10 "2016-09-14T06:18:18Z")

</div>

Hi Chris,

Is there a way to do the exact same thing as you’re doing above but download the image from the phone? Much like the way _File Media Source_ works?

Thanks,  
George

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 14, 2016, 6:17pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/11 "2016-09-14T18:17:15Z")

</div>

You can look at Engine\Source\Runtime\UMG\Private\Blueprint\AsyncTaskDownloadImage.cpp for the code for Download Image node. UAsyncTaskDownloadImage::HandleImageRequest() uses ImageWrapper to decode PNG, JPEG, or BMP using the data from HttpResponse. You would do similar, just load the data from a file instead.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0f59718a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0f59718a](https://forums.unrealengine.com/u/anonymous_user_0f59718a)\
**Post date:** [September 23, 2016, 12:13pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/12 "2016-09-23T12:13:57Z")

</div>

Is anyone having problems with washed out colors when using the downloaded texture for a sprite? I made sure to replicate all the settings in the dynamic material as well as the the texture settings for paper 2d but the colors are not true to the original image when rendering.

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 23, 2016, 8:17pm UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/13 "2016-09-23T20:17:26Z")

</div>

It sounds like it is the wrong colorspace. Most downloaded images are already gamma-corrected to look right on the monitor. Non-gamma corrected works best for rendering.

Take a look here a sRGB: [https://docs.unrealengine.com/latest/INT/Engine/Content/Types/Textures/Properties/](https://docs.unrealengine.com/latest/INT/Engine/Content/Types/Textures/Properties/)

---

<div class="post-metadata">

**Author:** ![foqueiroz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/foqueiroz/32/88708_2.png) [@foqueiroz](https://forums.unrealengine.com/u/foqueiroz)\
**Post date:** [May 7, 2021, 9:36am UTC](https://forums.unrealengine.com/t/downloading-images-imagewrapper/25945/14 "2021-05-07T09:36:48Z")

</div>

This solution gives me textures with no mipmaps. Is there a way around it? Thank you!
