Y ykucuk Well-Known Member Licensed User Longtime User Sep 24, 2018 #1 Hi, I download transparent png files from the internet and save to device. Unfortunately saved file is not transparent. Any help? B4X: Dim out As OutputStream out = File.OpenOutput(File.DirLibrary, "Caches/Bahoo/"&sFile , False) j2.GetBitmap.WriteToStream(out, 100, "PNG") out.Close
Hi, I download transparent png files from the internet and save to device. Unfortunately saved file is not transparent. Any help? B4X: Dim out As OutputStream out = File.OpenOutput(File.DirLibrary, "Caches/Bahoo/"&sFile , False) j2.GetBitmap.WriteToStream(out, 100, "PNG") out.Close
Erel B4X founder Staff member Licensed User Longtime User Sep 25, 2018 #2 Correct way to save a downloaded file: B4X: Dim out As OutputStream = File.OpenOuput(...) File.Copy2(job.GetInputStream, out) out.Close Upvote 0
Correct way to save a downloaded file: B4X: Dim out As OutputStream = File.OpenOuput(...) File.Copy2(job.GetInputStream, out) out.Close