Author Topic: Get Multiple Files  (Read 57291 times)

Raj

  • Guest
Re: Get Multiple Files
« Reply #15 on: October 21, 2008, 06:43:06 AM »
Hi Mike,

you said, I can change the buffer and param's packet size, but when I am changing the buffer and param package size then it throws me the error for read only property.

Below is the code.

wclBuffers objBuffers = new wclBuffers();
            objBuffers.ReadBuffer = 4096;
            objBuffers.WriteBuffer = 4096;

            objFtpClient.Buffers = objBuffers;
            objFtpClient.Param = objParam;

Kindly suggest me something, if it possible ?


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Get Multiple Files
« Reply #16 on: October 21, 2008, 07:45:24 AM »
objFtpClient.Buffers.ReadBuffer = 4096;
objFtpClient.Buffers.WriteBuffer = 4096;
objFtpClient.Params.PacketSize = 4096;

Raj

  • Guest
Re: Get Multiple Files
« Reply #17 on: October 21, 2008, 07:51:46 AM »
I have tried this,
but no luch  :(

no change in speed.

Can you suggest me the best hardware dongle, to make bluetooth transfer rate faster.

currently I am using BlueSoleil 2.1.3.0 Voip Release
Stack Version 05.04.11.200600413



Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Get Multiple Files
« Reply #18 on: October 21, 2008, 08:26:30 AM »

Raj

  • Guest
Re: Get Multiple Files
« Reply #19 on: October 23, 2008, 06:33:11 AM »
Hi Mike,

I am facing a strange problem, during wclFTPClient's Dir method e.filecount  is always 0, while mobile has the file. Please telll me the possible error due to I am facing this problem.



Raj

  • Guest
Re: Get Multiple Files
« Reply #20 on: October 23, 2008, 07:39:05 AM »
Sorry !!!!!!!!!!!!

I have solved the problem.

I haven't set wclFtpClient.AutoDetect=true ;

But by the ways if I haven't set it is true, then what should be workaround to get the folder and file listing.


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Get Multiple Files
« Reply #21 on: October 23, 2008, 07:47:07 AM »
No work around. You use nokia phone which does not provide access to the files with using FileTransferProfile. Nokia uses its own service. AutoDetect allows to detect which service to use.

Raj

  • Guest
Re: Get Multiple Files
« Reply #22 on: October 23, 2008, 09:11:38 AM »
Thanks :)


gusadolfo

  • Guest
Re: Get Multiple Files
« Reply #23 on: June 04, 2009, 05:08:31 PM »
Hi i know this topic is kinda old, but i have a problem sending multiple files and i was hoping you could help me out, here's the code (i'm using vb.net):
  
 Private Sub Send()
        BFObjectPushClientX.OpenDevice()
        If BFObjectPushClientX.Active Then
            Try
                For Each row As DataRow In _archives.Tables(0).Rows
                    BFObjectPushClientX.Put(My.Application.Info.DirectoryPath & "\" & K_FOLDER_CONTENT_TMP & "\" & row("Archive"))
                    _ws.ReportBluetoothDelivery(Password(), row("BuyId"), row("ItemId"), My.Settings.User)
                Next
            Catch ex As Exception
                Dim oErr As New cError(ex)
                _frmMsg = New frmMessage("Can't deliver all files", eMessageType.Info, False)
                _frmMsg.ShowDialog()
            End Try
        Else
            _frmMsg = New frmMessaje("Unable to connect", eMessageType.Info, False)
            _frmMsg.ShowDialog()
        End If
                BFObjectPushClientX.Close()
    End Sub

End Class

it only sends one file at the time.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Get Multiple Files
« Reply #24 on: June 04, 2009, 05:37:59 PM »
How should it be?

gusadolfo

  • Guest
Re: Get Multiple Files
« Reply #25 on: June 04, 2009, 06:04:26 PM »
it should be able to send multiple files, this isn't my code, the guy that was working here before me did it and i'm not sure if it is right, and i need the app to send multiple files if that's the case, i guess that's why he used

For Each row As DataRow In _archives.Tables(0).Rows
   BFObjectPushClientX.Put(My.Application.Info.DirectoryPath & "\" & K_FOLDER_CONTENT_TMP & "\" & row("Archive"))
   _ws.ReportBluetoothDelivery(Password(), row("BuyId"), row("ItemId"), My.Settings.User)
Next

right? for each row in the _archives.Tables it should send a file
« Last Edit: June 04, 2009, 06:08:29 PM by gusadolfo »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Get Multiple Files
« Reply #26 on: June 04, 2009, 06:11:22 PM »
I don;t use VB in my development and it's a bit hard to understand what should it do. By the logic it should do so. But what do you mean on "Multiple files"? Per one Put operation? if yes - then it is impossible

gusadolfo

  • Guest
Re: Get Multiple Files
« Reply #27 on: June 04, 2009, 06:44:15 PM »
what i'm trying to do is every time it enters the For it should select a different file from _archives.Tables(0).rows and send it, but it does it one time then it cancels the connection

gusadolfo

  • Guest
Re: Get Multiple Files
« Reply #28 on: June 04, 2009, 06:49:07 PM »
i found what's wrong, don't worry it's in the stored procedure that reports the delivery where's throwing the exception, that's why it cancels the connection, thanks anyways!!

 

Sitemap 1 2 3 4 5 6 7