Android Question Image Download and save to phone(Solved)

JNG

Member
Licensed User
Hi

I am facing problem in saving the images to phone local folder. the sample program is attached.Kindly point out where I am going wrong.

regards
jng
 

Attachments

  • B4A TestImg.zip
    449 KB · Views: 222

ronell

Well-Known Member
Licensed User
Longtime User
i tried in my device.. works properly

edit: can you tell us what is the exact problem?
 
Upvote 0

JNG

Member
Licensed User
It is not saving the same image in one device one standard image when I open it display wrong image(-1).
on another device its saving blank image of file size.
 
Upvote 0

JNG

Member
Licensed User
it was my mistake solved it

Dim out As OutputStream
out = File.OpenOutput(Main.filepath,"Image"&ctr&".png",False)
File.Copy2(Job.GetInputStream,out)
out.Close

regards
jng
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
it was my mistake solved it
out = File.OpenOutput(Main.filepath,"Image"&ctr&".png",False)
yeah .. its the first thing i notice in your project.. no file extension(.png) , didnt realize it was the issue because the problem is not stated clearly :confused:
 
Upvote 0
Top