THIS LIBRARY DONT WORK FINE I SUGGEST UNIVERSALIMAGELOADER BY DONMANFRED OR YOU CAN USE Job.GetBitmap
Thank you
********************
This library copy an image from the web and copy to device ( you can save the same in jpeg or png )
Example you use this feature to copy:
same thing to copy from web:
Yes i know exist also another way ... but this you have in two lines code
PictureDownloadUrl
Version:1.10
PictureDownloadUrl
Author: DevilApp
Version: 1.1
Code Example:
Thank you
********************
This library copy an image from the web and copy to device ( you can save the same in jpeg or png )
Example you use this feature to copy:
B4X:
Dim file_share asString = "example.jpg"
File.Copy(File.DirAssets, file_share, File.DirRootExternal, "save.jpg")
B4X:
Dim FileUrl As PictureDownloadUrl
Dim file_share as String = "example.png"
FileUrl.Copy("http://devil-app.eu/example/",file_share, File.DirRootExternal,"tattoo_pro","jpeg")
Yes i know exist also another way ... but this you have in two lines code
PictureDownloadUrl
Version:1.10
PictureDownloadUrl
Author: DevilApp
Version: 1.1
- PictureDownloadUrl
Methods:- Copy (pathSourceUrl As String, imgSource As String, pathDestiny As String, imgDestiny As String, format As String)
Copy Image from URL to Destiny - Joke NJDude
pathSourceUrl = URL where is original Image
imgSource = Name Image original
pathDestiny = Path where you want put new Image
imgDestiny = Name Image new
format = "png" or "jpeg"
Example:<code>
Dim FileUrl As PictureDownloadUrl
FileUrl.Copy("http://devil-app.eu/immagini_mie/","test.jpg", File.DirRootExternal,"vedi","jpeg")</code>
- android.permission.INTERNET
- Copy (pathSourceUrl As String, imgSource As String, pathDestiny As String, imgDestiny As String, format As String)
Code Example:
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim FileUrl As PictureDownloadUrl
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Dim FileUrl As PictureDownloadUrl
Dim file_share As String = "63206.jpg"
FileUrl.Copy("https://www.b4x.com/android/forum/data/avatars/m/63/",file_share, File.DirRootExternal,"save","jpeg")
ToastMessageShow("Done, look in File.DirRootExternal you have save.jpeg", True)
End Sub
Attachments
Last edited: