IT Community - Software Programming, Web Development and Technical Support

Is there any sample code for sending a text file from the phone to the PC via...

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-24-2007, 06:19 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Question Is there any sample code for sending a text file from the phone to the PC via...

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?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-09-2007, 06:59 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Wink Re: Is there any sample code for sending a text file from the phone to the PC via...

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..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-17-2007, 05:42 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Thumbs up Re: Is there any sample code for sending a text file from the phone to the PC via...

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-07-2007, 08:05 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: Is there any sample code for sending a text file from the phone to the PC via...

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-11-2007, 04:12 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Thumbs up Re: Is there any sample code for sending a text file from the phone to the PC via...

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -7. The time now is 09:49 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0