How to read blob post data when HasExcludedElements = true

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to read blob post data when HasExcludedElements = true

Postby Olivier » Fri May 20, 2016 5:40 am

Hi,

The webapp loaded in CEF do a POST (Content-Type:multipart/form-data), with 2 data :
- a JSON, which I can read on PostData element
- an wav audio file (represented as a blob) which I can't read.

On the second PostDataElement, I have the bool HasExcludedElements = true.

I used the C# CEF (chromiumfx),the documentation explains :
CfxPostData.HasExcludedElements : "Returns true (1) if the underlying POST data includes elements that are not represented by this CfxPostData object (for example, multi-part file upload data)"

So, if data are not represented in this CfxPostData, where are they represented and how can I read them (to save the wav file on filesystem) ?

This i what I see in dev tools (in Request Playload) :
Code: Select all
------WebKitFormBoundaryCDDsJDVXEx1tvQqI
Content-Disposition: form-data; name="annotation"

{"positionX":1040,"positionY":727,"type":"audio"}
------WebKitFormBoundaryCDDsJDVXEx1tvQqI
Content-Disposition: form-data; name="file"; filename="blob"
Content-Type: audio/wav


------WebKitFormBoundaryCDDsJDVXEx1tvQqI--


CEF Version: 3.2526.1366.g8617e7c
Chromium Verison: 47.0.2526.80

Thanks a lot,
Regards

Olivier
Olivier
Newbie
 
Posts: 1
Joined: Fri May 20, 2016 5:19 am

Re: How to read blob post data when HasExcludedElements = tr

Postby magreenblatt » Fri May 20, 2016 10:49 am

CfxPostData sounds like something from a wrapper project, so you should ask in the correct forum for the project that you're using.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 44 guests