Okay so I want to load a image from a URL in my app, however this image will need to be updated every month manually, therefore its not practical to have to submit a new update to apple every time the url changes. So does anyone no of a picture/file sharing site that would allow me keep the same URL for the image even when uploading a updated version of the image?
Asked
Active
Viewed 2,271 times
1
-
you can use free services like http://www.noip.com/. You create a free domain and you manage it yourself to point to the image you want. – Calin Chitu Sep 12 '13 at 18:52
-
i'm going out on a wing here, but you could look into something like downloading a txt file from drop box and reading that, it's a bit corny of an idea but it wouldn't involve creating your own domain and i think could be less work if it's possible, but no guarantees, i do know that you could download images from like Facebook, so you could up load an image with the url as the name of the file and then download that image, all of this is so hacky but it keeps things simple. – A'sa Dickens Sep 12 '13 at 19:11
-
@Caolán Hamilton, Have you find any solution yet? – pkc456 Feb 23 '17 at 06:26
-
anyone solve this? @pkc456 – Tyler Jones Mar 11 '19 at 22:41
2 Answers
0
You can just use the same url for the image that you want presented hosted on your domain or a hosting site.
So something like
http://www.mydomain.com/appImage.jpg
That you always call to and always is the address of the relevant image. Basically the URL is just a location that you can store any image at.

AdamG
- 3,718
- 2
- 18
- 28
0
Up to my knowledge, in order to achieve this you will need a static URL. So that means you'll have to buy a domain from a hosting service. Or if not you can use Google Drive for this. But you'll have to do some more coding for this.
Try using Google Drive:
- Upload a text file(*.txt) to your Google Drive and get a shareable link. Convert it to a direct download link.
- Next save whatever your image as a String (base64); I have attached some interesting coding examples below.
- Then give the file link to your app; download the file; read the String(base64) convert it back to image format.
- When you want to update the Image convert it to a String; open the Google Drive; edit your file using Drive Notepad (Do not use Google Docs) and simply save it Ctrl+S.
Useful Links:
- Google Drive Direct Link Generator
- Convert between UIImage and Base64 string
- Converting between Image and Base64 string in iOS
- Java BufferedImage to PNG format Base64 String
- Convert image to base64 with java
Hope this helps.

Community
- 1
- 1

Roshana Pitigala
- 8,437
- 8
- 49
- 80