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 8732885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:31:39+00:00 2026-06-13T09:31:39+00:00

I have an application that saves its streams not in its application directory, but

  • 0

I have an application that saves its streams not in its application directory, but somewhere else by using the following in my application.xml:

<Application>
<StreamManager>
    <VirtualDirectory>
          <!-- Specifies application specific virtual directory mapping for streams.   -->
        <Streams>/;C:\pathtomystreams</Streams>
    </VirtualDirectory>
</StreamManager>
</Application>

This is working nicely.
Now, what I am trying to do is to get a list of streams in that directory. The only way I know how to do it is to use the File object, create a File object of my streams folder, and then call File.list().

The Adobe help mentions that I can use Virtual Directories also for the File object:
http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/index.html

<FileObject>
    <VirtualDirectory>/;C:\pathtomystreams</VirtualDirectory>
</FileObject>

The Adobe help does not mention here where the FileObject tag should be nested, but a look in the vHosts Application.xml pointed me to that it should be in Application/ScriptEngine.
I also set the override attribute of the FileObject Element to “yes” in the vHosts Application.xml.

But I just don’t get the right path. when I write code like this in my main.asc:

var f = new File("/mystream.flv");
trace(f.toString());

the resulting trace reads C:\\mystream.flv and not C:\pathtomystreams\mystream.flv
Interestingly, it also is ignoring any VirtualPath that I might add into the vHosts Application.xml

Probably there is some configuration setting I am missing.
Does anyone have an idea what I might be missing here, or what I am doing wrong?

  • 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-13T09:31:41+00:00Added an answer on June 13, 2026 at 9:31 am

    There is indeed another configuration setting in the Server.xml I have overlooked:

    <Root> 
        <Server> 
            <Security> 
                <!-- This is disabled by default. -->
                <VirtualDirectoryForFile enable="true"/>
            </Security>
        </Server>
    <Root>
    

    The element VirtualDirectoryForFile has to be enabled to get it to work.
    So you have to make sure to have the override attribute set to true in the vHost.xml, and make sure that the enable attribute on VirtualDirectorForFile in the Server.xml is set to true.

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

Sidebar

Related Questions

I have an application that saves its context to XML. In this application, there
I have a C# application that saves its state when it is closed and
I have a WPF application which saves its data to XML files in a
I have a application that runs very well on JBoss using JSF 2. I
I have an Android application that simply saves data and displays them in a
I have an old program that saves its files to Program Files. We are
I have an application that reads an XML file for information on projects and
I have one an application that generates .pcl files. Once generated they are saved
I have a web application I've developed that has a fairly complex save routine.
I have a silverlight/RIA service application and in that, after I save the data

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.