azzam223 Active Member Licensed User Longtime User Dec 27, 2015 #1 Hello why When I Save my file (video,audio) To my database Server the app is Hanging ? I want my app continue working while the file is uploading How Can I Do this? Last edited: Dec 27, 2015
Hello why When I Save my file (video,audio) To my database Server the app is Hanging ? I want my app continue working while the file is uploading How Can I Do this?
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2015 #2 Can you post the code that saves the file? Upvote 0
azzam223 Active Member Licensed User Longtime User Dec 27, 2015 #3 I use Store procedure with Sql Query To Upload video File To My Db Server I am sorry The problem is in b4a not b4j Could you please move the Thread To B4a Forum Last edited: Dec 27, 2015 Upvote 0
I use Store procedure with Sql Query To Upload video File To My Db Server I am sorry The problem is in b4a not b4j Could you please move the Thread To B4a Forum
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2015 #4 Are you using RDC? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 27, 2015 #6 Can you post the relevant code? Upvote 0
azzam223 Active Member Licensed User Longtime User Dec 30, 2015 #7 Code: Copy connection.BeginTransaction connection.ExecNonQuery2("insert Attachments (WCID,ATTFile,Ext,FileName)values(?,?,?,?)",Array As Object(wcid,att.attach,att.ext,att.filename)) connection.TransactionSuccessful att is object i created when i save image or video or sound with this function the app is hang until the funtion finish Upvote 0
Code: Copy connection.BeginTransaction connection.ExecNonQuery2("insert Attachments (WCID,ATTFile,Ext,FileName)values(?,?,?,?)",Array As Object(wcid,att.attach,att.ext,att.filename)) connection.TransactionSuccessful att is object i created when i save image or video or sound with this function the app is hang until the funtion finish
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2015 #8 You are downloading the file from the remote database and then insert it into the local database, right? You should use the asynchronous methods. See the batch inserts section: https://www.b4x.com/android/forum/threads/sql-tutorial.6736/#content Upvote 0
You are downloading the file from the remote database and then insert it into the local database, right? You should use the asynchronous methods. See the batch inserts section: https://www.b4x.com/android/forum/threads/sql-tutorial.6736/#content
azzam223 Active Member Licensed User Longtime User Dec 31, 2015 #9 No I add file from my mobile galary And insert into Remote Server I use Jsql from B4j program To connect To my remote sql server Upvote 0
No I add file from my mobile galary And insert into Remote Server I use Jsql from B4j program To connect To my remote sql server
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2015 #10 Please start a new thread in the correct forum. Upvote 0
azzam223 Active Member Licensed User Longtime User Dec 31, 2015 #11 I use b4a program but I copy jsql into b4a library I do not use b4j program Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2015 #12 Go over your previous posts. How could we have guess that you are using jSQL with a B4A app? I'm sorry but I cannot further help you. Upvote 0
Go over your previous posts. How could we have guess that you are using jSQL with a B4A app? I'm sorry but I cannot further help you.
azzam223 Active Member Licensed User Longtime User Dec 31, 2015 #13 I am very sorry I think jsql use Rdc because that I say Yes I cannot put Rdc Server in my site because it's prevent So I Use Jsql And I copy it into b4a program Because I can with it Connect To my remote sqlServer Upvote 0
I am very sorry I think jsql use Rdc because that I say Yes I cannot put Rdc Server in my site because it's prevent So I Use Jsql And I copy it into b4a program Because I can with it Connect To my remote sqlServer