BlueLibs documentation

OBEXFileUtils.CreateFileObject Method 

generates OBEXFileObject from FileInfo object

[Visual Basic]
Public Shared Function CreateFileObject( _
   ByVal fInfo As FileInfo, _
   ByVal MaxHeaderLen As UInt32 _
) As OBEXFileObject
[C#]
public static OBEXFileObject CreateFileObject(
   FileInfo fInfo,
   uint MaxHeaderLen
);

Parameters

fInfo
FileInfo object
MaxHeaderLen
max OBEX header lenght

Return Value

OBEXFileObject created

Example

OBEXFileObject FileObj =  OBEXFileUtils.CreateFileObject(file, OBEXObjectPushClient.DefaultPacketLen);
fOBEXOPPClient.SendObject(FileObj.OBEXHeaders);

See Also

OBEXFileUtils Class | BlueLibs.OBEX Namespace