ISSUE FACING WITH 'INTHEHAND.NET.OBEX' package
Hope you are doing good. I am mailing you regarding support required in 'InTheHand.net.Obex'(4.0.4) package.
i have been using this package to send file from my laptop to a connected bluetooth device.
below code explains it....
using (var bluetoothClient = new BluetoothClient())
{
string filePath = @"D:\pdf_export\Patient.pdf";
var fileName = Path.GetFileName(filePath);
var address = bluetoothClient.PairedDevices.ToList()[1].DeviceAddress; //For my testing purpose only
var uri = new Uri("obex://" + address + "/" + fileName);
ObexWebRequest request = new ObexWebRequest(uri);
request.ReadFile(filePath);
var result = request.GetResponse() as ObexWebResponse;
Console.WriteLine($"Result StatusCode: {result.StatusCode}");
Above code is executed on .net 6 environment. Above code always gives status code 'RequestUrlTooLarge' code always even if the file size is 83kb. when i try to send file of 40KB it works fine.
I have created another dummy application with .net framework dll 'InTheHand.Net.pernosal dll and was able to execute above code without any error.
Please help me out how to proceed with 'IntheHand.Net.Obex' package.
Thanks in advance.
|