# Retrieve image from URL

**URL:** <https://techcommunity.softwareag.com/t/retrieve-image-from-url/100314>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [February 1, 2012, 2:33pm UTC](https://techcommunity.softwareag.com/t/retrieve-image-from-url/100314 "2012-02-01T14:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Gallego](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/javier_gallego/32/77_2.png) [@Javier\_Gallego](https://techcommunity.softwareag.com/u/Javier_Gallego)\
**Post date:** [February 1, 2012, 2:33pm UTC](https://techcommunity.softwareag.com/t/retrieve-image-from-url/100314/1 "2012-02-01T14:33:25Z")

</div>

Hi  
I am trying to get an image from a url… but it seems that I only get the first chunk from it (2700 bytes).  
Do I have to set PARAM\_MD\_HTTPCONNECTION\_DOWNLOAD\_IN\_CHUNKS to true? Any other param I need to set to get the whole image (about 40k big)?  
Maybe not relevant, but in the tcp monitor I see a difference in the response: when done with Firefox, I see  
…  
Transfer-Encoding: chunked  
Date: Wed, 01 Feb 2012 08:50:31 GMT

2000  
‰PNG  
…

And when done with the HttpConnectionHandler I always see  
…  
Transfer-Encoding: chunked  
Date: Wed, 01 Feb 2012 08:24:37 GMT

95e  
‰PNG  
…

Many thanks  
Javier

---

<div class="post-metadata">

**Author:** ![Javier\_Gallego](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/javier_gallego/32/77_2.png) [@Javier\_Gallego](https://techcommunity.softwareag.com/u/Javier_Gallego)\
**Post date:** [February 1, 2012, 3:43pm UTC](https://techcommunity.softwareag.com/t/retrieve-image-from-url/100314/2 "2012-02-01T15:43:46Z")

</div>

Hi  
Sorry, my problem… the problem was in the url and some “funny” characters  
Best regards  
Javier

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/retrieve-image-from-url/100314/3 "2021-04-02T15:01:51Z")

</div>


