Problem with OBEX header parsing
Hello, I have a question about parsing OBEX headers. I am implementing a Basic Imaging Profile server to save pictures from my Toshiba A5504T phone (Japanese market). Everything is going well except that I miss the first Body header of the Put command that pushes the image to the server. In other words: CFDictionaryGetCountOfKey( dictionary, kOBEXHeaderIDKeyBody ) returns false even though I know the Body header is there. I think the reason is that the first Put command is also sending a user defined header (Img-Descriptor) with the byte code 0x71. When the program executes: CFDictionaryRef dictionary = OBEXGetHeaders( data, dataLength ); it seems to grab all of the headers correctly until the user defined header and doesn't parse anything after that (thus the body is lost). So my question is, has anyone else run into a similar problem? The user defined header follows the IrOBEX specifications so it seems that the parser should be able to handle it more gracefully than it is. Well, other than writing my own parser, are there any other suggestions? Thanks! Bryan Atwood _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Bryan Atwood