I store images type TEXT which contains the URL of this image in my SQLite database, I want to get in my application in android these images and then display it on buttons
i just want to know how can i do it, some suggestion please
Since you fist need to download the images, I suggest you google for something like "android load images" or "android download images". You will find many good tutorials and libraries.
Related
as mentioned in the title, which is the easiest way to retrieve an image from sql and show it on image view?
I'm really new into Android world and I would like to achieve something without copy and paste other's code.
the images are stored in the sql as url in the webserver and not ad blob file.
What do you think about it?
thank you in advance!
Picasso is a great and simple library that can help you download/cache and manipulate images on android
When retrieve the images from Firebase to SQlite it comes as link, so I am trying now to show the images through Picasso as the following:
Picasso.with(context).load(favoritesList.get(position).getFoodImage())
.into(viewHolder.food_image);
but the image not showing. How can I do it?
The first check value of this favoritesList.get(position).getFoodImage(), if not null, paste url to browser and see result. Check your image in xml file and maybe Picasso library error, because in one of my project, Picasso not working but when I using Glide, it's work fine, and i don't understand why :D. BTW you should set placeholder for image.
I want to write a program which allows me to download the video of a certain link and store it into database. I am able to retrieve the link of the video but I can't download it into my computer or database. Lets say my link is "www.abcde.com/12345" and when i click this link, I can watch the video. So How do I download/store this video into my database using java ? I read about inputstream, httpconnection and getV , filereader and whatnot but I just dont know where to start.
1. Link
The link you enter by browser to watch a video is rather not going to be link which you can use in your application to download the content of a file. Link you enter by browser is probably a reference to some web video player
In your java application a link to original resource file with the video content will be neccessary.
2. Database storage of a video
Do you really need to store video content in a database?
There are plenty more options (like for example storing only reference to file path)
I reccomend you to read this article
https://wiki.postgresql.org/wiki/BinaryFilesInDB
I am developing Android Application, in my application user will take photo using the camera, that photo has to be uploaded to this url http://images.google.com/searchbyimage I want to know how to upload the file to this URL and how to parse the response and display the images in the Grid.
Google image search is based on meta data and actual file properties. So what you want to get done may not work as you wish to as it will be completely different image.
It might work only with landmarks, for example if you take photo of big ben and search picture on google that might find things related to Big Ben. Same with brands, if you take picture of Coke bottle that might work. But if you take picture of say somebody or some object that will not work I am afraid.
I want to extract thumbnail of a website using java.javascript or jquery but not using PHP or .Net.Can I do it because i Surfed on Google and they show that this can only be possible using Java.I have an input box where user will enter the website and I want to show the thumbnail of a website in the div?Is there an plugin or API through which I can do it?
To get the thumbnail of a website using Java you can use this free API
http://free.pagepeeker.com/v2/thumbs.php?size=x&url=google.com
Just replace google with your respective link and you will get the thumbnail of your respective website.