How can I download the image from my application to the users device

see the image is saved in my internal storage

every time you click the buttton a new image will be generated and will be stored in you internal storage

if you found my post useful then dont forget to mark it as the solution

1 Like

so @Syed_Khalid_Mahmood did you tried it ?

It works but the image shown in the app and the image downloaded is totally different. I will mark your answer as correct btw. What about this extension will it work?? [FREE] Extension ComponentToImage

The downloaded image and the image which is visible on the screen are both different. Can you please solve this problem?

Not possible, let me check

No it’s not different see


Why not try it yourself

Thanks a lot. I tried storing the link into a global variable and it worked! Likewise, how can I keep a share option that shares the image file received from Unsplash. Please help.

search on the community you will definitely find the answer

and also see this @Syed_Khalid_Mahmood

I searched it. There’s nothing like that. Is it necessary that the image must be stored into the users phone to share the file?

well, I see Niotron Blocks - _ -

1 Like

That doesn’t really matter. Does it? I will switch to Kodular as soon as API 30 update is released. btw Niotron community is not so active…

you can do one thing @Syed_Khalid_Mahmood once the image is downloaded then as i have shown the path of the image on a lable just change the blocks a bit and insert the path in the file parameter in this block

image

Is it not possible to share the image without downloading it??

thats not on ! niotron related doubts should be asked on niotron community

I dont know that , maybe try something yourself

Calm down everyone. I just planned for this app. I don’t even know where I am gonna make it.

maybe you can first add the images to the assets , not sure though

@Yashsehgal022 Hey!! One last question, please… Referring to the block images you have sent, in the save file as block, if the image named test already exists, it is replacing that image with the new image because of which multiple images are not being downloaded to the user’s device. (I hope you are understanding). For example, if I click on the download button two times, then the last image is overwriting the previous image because the name is the same. How can I implement such a system that whenever download button is clicked, a new name that has never been used before will be generated automatically or the suffix after the test will increase by 1 every time