Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8571975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:54:06+00:00 2026-06-11T18:54:06+00:00

I’ve been working with the UPNP library from Intel in a VB.NET project and

  • 0

I’ve been working with the UPNP library from Intel in a VB.NET project and though the lack of documentation has made it hard (literally guessing what property/method I have to use in every line of code) I’ve been able to bend it to my will, and I’ve got a pretty much functional application that uses UPNP on Windows.

My problem is, I now want to be able to transfer files from the device host to the control point. Scourging Google for answers shows that Intel’s UPNP uses an embedded Web server to process everything related to UPNP, and I can add custom directories to my device with the AddVirtualDirectory method. But then, the luck ends. No documentation, no examples, nothing.

So my question is: does anyone know how to use it? All I discovered is that the method requires 2 delegate functions, declared as VirtualDirectoryHandler, but I don’t know what am I supposed to do with these.

Thanks for your help.

Léster

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:54:07+00:00Added an answer on June 11, 2026 at 6:54 pm

    So to make requirement clear: control point needs to pull (download) images from a device. Device doesn’t need to access (push) to the control point. No other device will try to access the images already stored on the control point. Hence only the device needs to implement ContentDirectory, the control point doesn’t.

    I recommend you read UPnP-av-ContentDirectory document (any version) from MediaServer folder of the UPnP specs bundle. Look up CreateObject, DeleteObject, ImportResource, ExportResource. You actually won’t need them if my assumption above is correct, but for understanding what is meant by file transfer in UPnP. I admit not knowing anything about Intel UPnP specifically, so follows a guesswork from general UPnP knowledge and random fulltext search.

    To enable object downloading, the device needs to present a browseable media storage. Basically, you need to implement GET request handler on the device. UPnP is nothing more than an ad-hoc net of webservers, spiced with some multicasting and extra headers. That’s why “Intel’s UPNP uses an embedded Web server”. Any UPnP device is a webserver. Intel UPnP already contains implementations of VirtualDirectoryHandler in MediaServerDevice.WebServer_OnHeaderReceiveSink and WebServer_OnPacketReceiveSink. Chances are, that you could use this MediaServerDevice.cs out of the box to have ContentDirectory implemented. Have a look at usages of VirtualDirectoryHandler throughout the SDK to get an idea how to use it.

    The control point downloader will need to execute the AVTransport.Browse command to find resource URL(s) of image(s) to be downloaded. Intel’s MediaBrowser.cs looks promising. I recommend you read also the beginning of the document pointed above, to get an insight into the navigational structure of UPnP ContentDirectory. When in doubt, run DeviceSpy from Intel’s Tools suite and query your device manually. Start with ObjectID “0”. Nothing will help you more to understand the ContentDirectory than seeing the raw XML DIDL response.

    Once your control point knows the resource URL, you simply download it via HTTP GET. There is no need for fancy ImportObject as the control point is also the target storage. This last part is technically not about UPnP at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.