TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shuvro Pall
NA
134
373.3k
Bluetooth File Transferring Problem
Oct 8 2011 1:56 PM
I am new in Bluetooth programming.In an application i face a problem during sending file from my computer to my mobile.In my program i first detect enabled bluetooth devices by a search button and then set connections with them by a connect button..it works as well.but when i try to send a file it shows exception which names WebException and cannot send any file.Here is the code:
public OpenFileDialog ofd;
string filename = System.IO.Path.GetFileName(ofd.FileName);
String adr = "0025677FB346";
Uri u = new Uri("obex-push://" + adr.ToString() + "/" + fileName);
ObexWebRequest owr = new ObexWebRequest(u);
owr.ReadFile(ofd.FileName);
ObexWebResponse response = (ObexWebResponse)owr.GetResponse(); //Exception shows here
response.Close();
I don't know what is the cause of this exception and how can i solve this problem.Can you give any idea?or are there any easy way to send file via Bluetooth?Thanks for any suggestion.
Reply
Answers (
1
)
Progress bar on filling dataset.. C# winforms
Session and SessionID