This is a discussion on Is there any sample code for sending a text file from the phone to the PC via... within the Mobile Software Development forums, part of the Software Development category; Is there any sample code for sending a text file from the phone to the PC via BlueTooth using standard ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Is there any sample code for sending a text file from the phone to the PC via BlueTooth using standard PC capabilities for receiving BT data? Is there any way to create a file from the J2Me application in the phone's memory which can be browsed and transferred over the PC suite? |
| Sponsored Links |
| |||
| Hi, I have send a file from pc to my phone using third party tool called InTheHand Library... Here i explain that how to send a file from pc to phone.. first u connect bluetooth tongle to ur pc then add these code for send a file in ur program.. The code should be write after the code which u have written for establish the connection between pc and ur phone.. I am using list box for display the device name, then Here code follows, InTheHand.Net.BluetoothAddress[] address_array = new BluetoothAddress [1000]; this address_array object for store all the device address... private void sendfile () { int index = this.listBox_devices.SelectedIndex ; InTheHand.Net.BluetoothAddress address = this.address_array[index]; System.Uri uri = new Uri("obex://" + address.ToString() + "/" + FileName); ObexWebRequest request = new ObexWebRequest(uri); request.ReadFile(FileName);///// ObexWebResponse response = (ObexWebResponse)request.GetResponse(); response.Close(); this.button_sendfile.Enabled = true ; MessageBox.Show("File send Successfully"); }
__________________ H2O Without us, no one can survive.. |
| |||
| hi, I used the above code for send a file from phone to pc... But it couldnt work....Actually i need to send a file from pc to phone..Can we use this same code for it..
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
| |||
| hi krishna, i think its not possible for sending files from pc to mobile using same code mentioned...best option is check it out...and let me to know the response
__________________ cheers Aman |
| |||
| Hi aman, Thats above code is worked for send a file from Pc to Phone only... Its not worked for send a file from Phone to Pc.. Actually i need to send a file from Phone to pc.. Do u have any idea about this?.. If u got something, let share with me..
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/mobile-software-development/2647-there-any-sample-code-sending-text-file-phone-pc-via.html | |||
| Posted By | For | Type | Date |
| DiscussWeb IT Community - Technical Support and Technology Discussions | This thread | Refback | 09-07-2007 11:08 PM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to attach file when sending a mail via flash form? | aramesh | Flash Actionscript Programming | 1 | 03-07-2008 01:55 AM |
| File extension of the code file & object repository file in QTP | vigneshgets | Testing Tools | 1 | 01-16-2008 11:43 PM |
| sample for load *.OBJ file using Android Object3D class | leoraja8 | Mobile Software Development | 0 | 01-09-2008 01:52 AM |
| Write sample code for pagination using java script | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 09-11-2007 12:00 AM |
| Any simple step or sample code for transparency mobile..? | mobilegeek | Mobile Software Development | 1 | 07-24-2007 06:43 AM |