Android Question Hanging App When Save File To db

azzam223

Active Member
Licensed User
Longtime User
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:

azzam223

Active Member
Licensed User
Longtime User
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:
Upvote 0

azzam223

Active Member
Licensed User
Longtime User
B4X:
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

azzam223

Active Member
Licensed User
Longtime User
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

azzam223

Active Member
Licensed User
Longtime User
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
Top