question

renishabdulrehiman-1386 avatar image
0 Votes"
renishabdulrehiman-1386 asked JackJJun-MSFT commented

XML Deserialize with formdata

Hi , I am trying to deserialize the XML , I am able to deserialize it which is inside the tags . but I need the image data also which is present below

<EventNotificationAlert version="2.0"
xmlns="http://www.hikvision.com/ver20/XMLSchema">;
<ipAddress>192.168.1.64</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>84:9a:40:8f:20:df</macAddress>
<channelID>1</channelID>
<dateTime>2022-05-19T11:09:48+04:00</dateTime>
<activePostCount>1</activePostCount>
<eventType>ANPR</eventType>
<eventState>active</eventState>
<eventDescription>ANPR</eventDescription>
<channelName></channelName>
<ANPR>
<country>DXB</country>
<licensePlate>86691</licensePlate>
<line>1</line>
<direction>unknown</direction>
<confidenceLevel>97</confidenceLevel>
<plateType>private</plateType>
<plateColor>white</plateColor>
<licenseBright>131</licenseBright>
<plateCharBelieve>100,100,100,100,100</plateCharBelieve>
<speedLimit>0</speedLimit>
<vehicleType>car</vehicleType>
<detectType>0</detectType>
<dwIllegalTime>0</dwIllegalTime>
<region>reserve</region>
<area></area>
<plateSize>long</plateSize>
<category>S</category>
<vehicleInfo>
<index>306</index>
<vehicleType>0</vehicleType>
<colorDepth>0</colorDepth>
<color>unknown</color>
<speed>0</speed>
<length>0</length>
<vehicleLogoRecog>0</vehicleLogoRecog>
<vehileSubLogoRecog>0</vehileSubLogoRecog>
<vehileModel>0</vehileModel>
</vehicleInfo>
<pictureInfoList>
<pictureInfo>
<fileName>licensePlatePicture.jpg</fileName>
<type>licensePlatePicture</type>
<dataType>0</dataType>
<absTime>20220519110948886</absTime>
</pictureInfo>
<pictureInfo>
<fileName>detectionPicture.jpg</fileName>
<type>detectionPicture</type>
<dataType>0</dataType>
<absTime>20220519110948886</absTime>
<plateRect>
<X>1006</X>
<Y>285</Y>
<width>33</width>
<height>78</height>
</plateRect>
</pictureInfo>
</pictureInfoList>
<originalLicensePlate>S 86691</originalLicensePlate>
</ANPR>
<UUID>a86f8000-f642-11b4-839f-849a408f20df</UUID>
<picNum>2</picNum>
<deviceId>Camera 01</deviceId>
<monitoringSiteID></monitoringSiteID>
</EventNotificationAlert>

--boundary
Content-Disposition: form-data; name="licensePlatePicture.jpg"; filename="licensePlatePicture.jpg"
Content-Type: image/jpeg
Content-Length: 4295

--here has some binary information ;;







dotnet-csharpdotnet-visual-basic
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@renishabdulrehiman-1386, Welcome to Microsoft Q&A, I want to know how do you get the binary information. Are you storing the file in the local or in the website?

0 Votes 0 ·

0 Answers