Page 1 of 2

Download images from Appery Backend?

Posted: Tue Jul 09, 2013 5:11 am
by Snehal Dhruve

In my app I am storing Images in Data Uri how can I export the images or download those images from my backend?


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 5:19 am
by Kateryna Grynko

Hi Snehal,

This documentation should be helpful: http://docs.appery.io/documentation/b...

Using authorization keys you can access database data. You can't use the files directly, such as for app design elements.

Also we have a function Appery.getImagePath (name). Read more here: http://docs.appery.io/javascript-api/ # ApperygetImagePathname

I would advise you to try our tutorials http://docs.appery.io/tutorials/


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 5:55 am
by Snehal Dhruve

Is there any way to export the images? I am not looking to use it in a query or anything. I just want to download the images on my computer.


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 10:20 am
by Anton Artyukh5836028

Hello,

Unfortunately we don't have any universal mechanism for export all files from your backend. But you can create app which should connect to your backend and download all for you.


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 3:22 pm
by Joe Bohen

Hi Snehal,

I use a .net application written in vb.net to download from the database. Would a sample visual studio application be of any use to you.

Regards,
Joe


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 3:26 pm
by Snehal Dhruve

Sure Joe it woudnt hurt for sure. I can definitely take a look. Thanks


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 3:37 pm
by Joe Bohen

Let me have an email address and I will send you a sample app.


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 3:48 pm
by Snehal Dhruve

I saw there is a Box API is there a Dropbox or a Flickr API that can be integrated to post pictures there?


Download images from Appery Backend?

Posted: Tue Jul 09, 2013 4:13 pm
by Joe Bohen

Hi Snehal,

If you can follow this sub it should point you in the right direction. Build a new solution and use the sub below adding the NewtonSoft json Nuget Package. Replace the table name and ID and 'User Name' and 'Password' in the appropriate places with your true credentials etc and you will be good to go.

Private Sub GetRecords()
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim reader As StreamReader
Dim cw As Integer = 0
Try
request = DirectCast(WebRequest.Create("https://api.tiggzi.com/rest/1/db/coll... Table Name"), HttpWebRequest)
request.Credentials = New NetworkCredential("User Name", "Password")
request.Headers.Add("X-Tiggzi-Database-Id:51d90822e4b0 Your correct ID")

Code: Select all

         ' Get response   
         response = DirectCast(request.GetResponse(), HttpWebResponse) 
         reader = New StreamReader(response.GetResponseStream()) 

         Dim results = JsonConvert.DeserializeObject(reader.ReadToEnd()) '  0 Then 
             For R = 0 To results.count - 1 
                 ' process your data here     
             Next 

         End If 

     Catch ex As Exception 
         MsgBox(Err.Description) 
     Finally 

     End Try 
 End Sub

Download images from Appery Backend?

Posted: Tue Jul 09, 2013 4:14 pm
by Snehal Dhruve

Thanks let me give it a spin ;-)