Storing images and getting them from a website and an android application












0














I have done a simple gallery app in Android Studio and then made a gallery website using the same database to show the same content as my gallery app. I am using my pc as a server with XAMPP and everything works.



The thing is, now I don't want to use my pc as a server and I'd like to upload my webpage to some free hosting like 000webhost to share it with my friends and other people because I really don't want to leave my computer on 24/7. I also want the data accessible from my app to read and write as it does now but on a real server. I just don't know how to do it (I've used 000webhost before but I***think*** it works for the website only, I mean, I can show the images stored there from my app but I can't upload new images from my app).



I don't know if it's the import but, I've used retrofit to connect my app to my database and server.



I'm still a student, I don't know a lot about this stuff but I want to learn, I'd be grateful if you could help me here.










share|improve this question
























  • get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
    – Sam.
    Nov 21 '18 at 22:39












  • and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
    – Sam.
    Nov 21 '18 at 22:49










  • Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
    – Esau Gonzalez Soto
    Nov 21 '18 at 23:05










  • ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
    – Sam.
    Nov 21 '18 at 23:09












  • here is the tutorial - link and do check his website if you need further help.
    – Sam.
    Nov 21 '18 at 23:18
















0














I have done a simple gallery app in Android Studio and then made a gallery website using the same database to show the same content as my gallery app. I am using my pc as a server with XAMPP and everything works.



The thing is, now I don't want to use my pc as a server and I'd like to upload my webpage to some free hosting like 000webhost to share it with my friends and other people because I really don't want to leave my computer on 24/7. I also want the data accessible from my app to read and write as it does now but on a real server. I just don't know how to do it (I've used 000webhost before but I***think*** it works for the website only, I mean, I can show the images stored there from my app but I can't upload new images from my app).



I don't know if it's the import but, I've used retrofit to connect my app to my database and server.



I'm still a student, I don't know a lot about this stuff but I want to learn, I'd be grateful if you could help me here.










share|improve this question
























  • get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
    – Sam.
    Nov 21 '18 at 22:39












  • and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
    – Sam.
    Nov 21 '18 at 22:49










  • Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
    – Esau Gonzalez Soto
    Nov 21 '18 at 23:05










  • ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
    – Sam.
    Nov 21 '18 at 23:09












  • here is the tutorial - link and do check his website if you need further help.
    – Sam.
    Nov 21 '18 at 23:18














0












0








0







I have done a simple gallery app in Android Studio and then made a gallery website using the same database to show the same content as my gallery app. I am using my pc as a server with XAMPP and everything works.



The thing is, now I don't want to use my pc as a server and I'd like to upload my webpage to some free hosting like 000webhost to share it with my friends and other people because I really don't want to leave my computer on 24/7. I also want the data accessible from my app to read and write as it does now but on a real server. I just don't know how to do it (I've used 000webhost before but I***think*** it works for the website only, I mean, I can show the images stored there from my app but I can't upload new images from my app).



I don't know if it's the import but, I've used retrofit to connect my app to my database and server.



I'm still a student, I don't know a lot about this stuff but I want to learn, I'd be grateful if you could help me here.










share|improve this question















I have done a simple gallery app in Android Studio and then made a gallery website using the same database to show the same content as my gallery app. I am using my pc as a server with XAMPP and everything works.



The thing is, now I don't want to use my pc as a server and I'd like to upload my webpage to some free hosting like 000webhost to share it with my friends and other people because I really don't want to leave my computer on 24/7. I also want the data accessible from my app to read and write as it does now but on a real server. I just don't know how to do it (I've used 000webhost before but I***think*** it works for the website only, I mean, I can show the images stored there from my app but I can't upload new images from my app).



I don't know if it's the import but, I've used retrofit to connect my app to my database and server.



I'm still a student, I don't know a lot about this stuff but I want to learn, I'd be grateful if you could help me here.







php android server retrofit2 web-hosting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 2:12









Ishaan Javali

1,0961519




1,0961519










asked Nov 21 '18 at 22:38









Esau Gonzalez SotoEsau Gonzalez Soto

31




31












  • get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
    – Sam.
    Nov 21 '18 at 22:39












  • and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
    – Sam.
    Nov 21 '18 at 22:49










  • Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
    – Esau Gonzalez Soto
    Nov 21 '18 at 23:05










  • ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
    – Sam.
    Nov 21 '18 at 23:09












  • here is the tutorial - link and do check his website if you need further help.
    – Sam.
    Nov 21 '18 at 23:18


















  • get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
    – Sam.
    Nov 21 '18 at 22:39












  • and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
    – Sam.
    Nov 21 '18 at 22:49










  • Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
    – Esau Gonzalez Soto
    Nov 21 '18 at 23:05










  • ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
    – Sam.
    Nov 21 '18 at 23:09












  • here is the tutorial - link and do check his website if you need further help.
    – Sam.
    Nov 21 '18 at 23:18
















get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
– Sam.
Nov 21 '18 at 22:39






get the url of the image(where your image is stored) and display in android app via library like Glide or Picasso. and to upload image you can convert the image into base64 string and send it to your host and using backend script you can write image in your host location.**AND PLEASE NOTE- DON'T USE YOUR WEB ADDRESS to store image.(ex. www.000webhost.app.yourwebsitename)**. you need to provide actual path
– Sam.
Nov 21 '18 at 22:39














and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
– Sam.
Nov 21 '18 at 22:49




and 000webhost is fine option, you can use it to store your images and some back end script. I am using the same and using for the same purpose (to upload image), so it won't be an issue.
– Sam.
Nov 21 '18 at 22:49












Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
– Esau Gonzalez Soto
Nov 21 '18 at 23:05




Hi Sam, I really appreciate you help. How can I upload images to my public_html folder from my app? How can I do it without been me dragging the new content to the root folder?
– Esau Gonzalez Soto
Nov 21 '18 at 23:05












ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
– Sam.
Nov 21 '18 at 23:09






ahh, its a long process. i cannot explain all in comments. I did it using the PHP as backend which i uploaded in 000webhost, and call that service from android when i need to upload an image.And please not - Since there will be multiple image, and you need to give permission to write data in order to upload, make a new folder inside public_html called "Image" and give Write Permission to that folder.
– Sam.
Nov 21 '18 at 23:09














here is the tutorial - link and do check his website if you need further help.
– Sam.
Nov 21 '18 at 23:18




here is the tutorial - link and do check his website if you need further help.
– Sam.
Nov 21 '18 at 23:18












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421414%2fstoring-images-and-getting-them-from-a-website-and-an-android-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53421414%2fstoring-images-and-getting-them-from-a-website-and-an-android-application%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'