sorry im a bit new to all this, but if anyone could help me that would be great.
im trying to send a file from a c# console app to my nokia phone using the ObexObjectPush
but i seem to keep getting Badrequest
Uri uri = new Uri("obex://" + addr + "/" + System.IO.Path.GetFileName(loc));
Console.WriteLine("[*} Uri: "+ uri.ToString());
ObexWebRequest request = new ObexWebRequest(uri);
// request.Method = "GET";
request.ContentType = MediaTypeNames.Image.Jpg;
request.ReadFile(loc);
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
Console.WriteLine("
Got Response: "+response.StatusCode.ToString());
response.Close();
and in the console it says:
Select a device # to connect to:1
Connecting to IKE (001BAF8A8449)
[*} Uri: obex://001baf8a8449/test.jpg
Got Response: BadRequest
any help would be great.
ikex