How to show images like instagram posts | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to show images like instagram posts

I'm trying to store image links of images uploaded from user's device by date packets in mongodb.I've created a "post" collection where images are stored inside the documents created by their email ids in this format { "_id: "abc", "17-11-2017/14-48": ["imglink1","imglink2"], "17-11-2017/14-50": ["imglink1"] } My problem is I'm receiving all the links correctly but they are being shown separately. Now my question is how to receive image links in such a way that the date packet containing multilinks will be shown in viewpagers and single imglink will be shown directly like instagram .

17th Nov 2017, 1:34 PM
Srinu
Srinu - avatar
1 Answer
- 1
I’ve always had trouble getting images from files into code you have to copy the url which means that they have to be posted on the web.
17th Nov 2017, 3:54 PM
Ole113
Ole113 - avatar