IDataInput to a File?

Is there anyway to get an IDataInput to a File in Flash or
Flex without AIR? I need to do a non-HTTP upload, so I don't want
to use FileReference. If such a facility does not exist, could
someone explain why? I don't see any particular security reason for
it, given the existence of FileReference.
Thanks!
Emil

Press the '''<ALT>''' button, then the tool bar will show up. Select '''File'''.

Similar Messages

  • How do I use a FileStream with an IFilePromise without knowing the File?

    I've finished the implmentation of my project using Async IFilePromises by extending the ByteArray class. I can drag out of my application and files are created by copying bits over the network, etc. The issue I'm running into is that because I used the ByteArray as my dataprovider, files are stored "In-Memory" until the Close event is fired.
    My application routinely copies files around 700 MB and up to 2 GB. The implementation quickly causes out of memory errors. That said, if I change the implementation to use FileStreams then the files are written directly to disk and memory is exactly where I want it to be.
    The issue is that the FileStream requires a File object when it's FileStream.open(File, FileMode) method is called. If I manually create a file and use it, then everything is fine, but doing that defeats the purpose of the FilePromise. I lose all the information about where a person dropped the file.
    So how do I get access to the File object that is created for each FilePromise? I know one is created by inspecting the call stack when the IFilePromise.open() method is called and inspecting the caller MacFilePromiseWrapper._file.
    I've tried simply returning a plain FileStream instead of an extended class in the IFilePromise.open method, but that still gives the same error result when I try to write to the stream (says that the stream isnt open yet).
    I would have expected the MacFilePromiseWrapper / FilePromiseWrapper to intelligently handle the returned IDataProvider and perform any "open" and "close" it needed. Please tell me I'm just missing something obvious. I'm so close to being done with this project and I don't want to have to rewrite this using a native implementation. The performance issues (memory usage) will cause me to do just that if I cant figure this out.
    Thanks for any help,
    Jared

    I have resolved the issues myself.
    I had the idea of an IFilePromise / IDataInput backwards. The way I thought it worked is that what you were "writing to" when you wrote into a ByteArray and fired of progress events was simply a pipe to a file handle on the disk. That's backwards.  What really happens is that the thing you're writing to is a buffer for the IFilePromise. Firing the open/progress/close events let the file system know that it's safe to pull up to IDataInput.bytesAvailable out of your buffer and write that to the disk and the buffer you write to can be a ByteArray, Socket, FileStream, etc.
    The confusion was compounded by my attempts to use FileStream as the IDataInput. What I was doing for "testing purposes" was creating a temporary file and writing my bytes to it. The file handle created by the FilePromise would immediately disappear, so I thought it meant I needed to somehow get access to that handle so I knew where to send my bits using FileStream.open(File, FileMode).
    I was really close, but had a mistake in there.  I was on the right track with opening the FileStrea and using the temporary file, but I opened it with the wrong FileMode.
    I used FileMode.WRITE because I thought I was writing to the disk only. When I switched it to FileMode.UPDATE (which is read/write) then everything worked as I needed it to.
    So to summarize, to use a FileStream as the IDataInput for an IFilePromise you need to:
    Create the FileStream object and return it when the IFilePromise.open is called
    When you get bytes off your network, etc, dispatch the OPEN event
    Open the FileStream object with FileMode.UPDATE and use a temporary file provided by File.createTempFile(), store it for later
    Write bytes to the FileStream and send out the proper ProgressEvent.PROGRESS events
    Dispatch the COMPLETE event when you're done
    the IFilePromise.end() method will be called and you have an opportunity to close your FileStream and to delete the temporary file that was created
    I hope this helps someone that runs into a similar issue.

  • Unload SWF File

    Hi,
    I'm trying to develop a portal application.  I'm loading all swf files in a trusted sandbox configuration.
    When i unload the swf file as follows (note autoLoad set to true):
    swfLoader.source = null;
    swfLoader.validateNow();
    But when i run the profiler i notice that the application loaded on the swf file is never garbage collected (i.e. there is an instance for every time i load the swf file).
    When i look at what has references to the application i get the following:
    Is there a standard method for removing reference to the application so that it is unloaded.  Currently my application is vanilla and contains nothing within the mxml.

    Here it is.  Did not see anything out of ordinary.
    <report>
      <scripts>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/IUIComponent)" mod="1259075989629" size="4563" optimizedsize="1152">
          <def id="mx.core:IUIComponent" />
          <pre id="Object" />
          <pre id="mx.core:IFlexDisplayObject" />
          <dep id="mx.managers:ISystemManager" />
          <dep id="AS3" />
          <dep id="flash.display:DisplayObjectContainer" />
          <dep id="flash.display:DisplayObject" />
          <dep id="flash.display:Sprite" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/utils/RPCObjectUtil)" mod="1259075940689" size="7130" optimizedsize="5264">
          <def id="mx.utils:RPCObjectUtil" />
          <pre id="Object" />
          <dep id="flash.utils:describeType" />
          <dep id="flash.utils:getQualifiedClassName" />
          <dep id="Date" />
          <dep id="AS3" />
          <dep id="QName" />
          <dep id="flash.xml:XMLNode" />
          <dep id="XML" />
          <dep id="mx.core:mx_internal" />
          <dep id="XMLList" />
          <dep id="flash.utils:Dictionary" />
          <dep id="Error" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/IChildList)" mod="1259075989520" size="1480" optimizedsize="497">
          <def id="mx.core:IChildList" />
          <pre id="Object" />
          <dep id="AS3" />
          <dep id="flash.display:DisplayObject" />
          <dep id="flash.geom:Point" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/config/ConfigMap)" mod="1259075949283" size="2285" optimizedsize="1019">
          <def id="mx.messaging.config:ConfigMap" />
          <pre id="flash.utils:Proxy" />
          <dep id="AS3" />
          <dep id="flash.utils:flash_proxy" />
          <dep id="mx.utils:object_proxy" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/utils/RPCUIDUtil)" mod="1259075940689" size="2858" optimizedsize="1848">
          <def id="mx.utils:RPCUIDUtil" />
          <pre id="Object" />
          <dep id="Date" />
          <dep id="flash.utils:ByteArray" />
          <dep id="AS3" />
          <dep id="Math" />
          <dep id="mx.core:mx_internal" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/IButton)" mod="1259075988989" size="642" optimizedsize="230">
          <def id="mx.core:IButton" />
          <pre id="mx.core:IUIComponent" />
          <pre id="Object" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/managers/IFocusManager)" mod="1259075991942" size="2728" optimizedsize="773">
          <def id="mx.managers:IFocusManager" />
          <pre id="Object" />
          <dep id="mx.core:IButton" />
          <dep id="mx.managers:IFocusManagerComponent" />
          <dep id="flash.events:IEventDispatcher" />
          <dep id="AS3" />
          <dep id="flash.display:InteractiveObject" />
          <dep id="flash.display:DisplayObject" />
          <dep id="flash.display:Sprite" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/IMessage)" mod="1259075949565" size="1995" optimizedsize="409">
          <def id="mx.messaging.messages:IMessage" />
          <pre id="Object" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/RemotingMessage)" mod="1259075949830" size="654" optimizedsize="264">
          <def id="mx.messaging.messages:RemotingMessage" />
          <pre id="mx.messaging.messages:AbstractMessage" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/mx_internal)" mod="1259075988989" size="190" optimizedsize="109">
          <def id="mx.core:mx_internal" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/IFlexDisplayObject)" mod="1259075989661" size="6251" optimizedsize="1339">
          <def id="mx.core:IFlexDisplayObject" />
          <pre id="flash.events:IEventDispatcher" />
          <pre id="flash.display:IBitmapDrawable" />
          <pre id="Object" />
          <dep id="flash.accessibility:AccessibilityProperties" />
          <dep id="AS3" />
          <dep id="flash.display:DisplayObjectContainer" />
          <dep id="flash.geom:Rectangle" />
          <dep id="flash.display:DisplayObject" />
          <dep id="flash.display:Stage" />
          <dep id="flash.display:LoaderInfo" />
          <dep id="flash.geom:Point" />
          <dep id="flash.geom:Transform" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/ISmallMessage)" mod="1259075949815" size="571" optimizedsize="196">
          <def id="mx.messaging.messages:ISmallMessage" />
          <pre id="Object" />
          <pre id="mx.messaging.messages:IMessage" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Source\Core\unithru_core_client_loader_flex\src\main.as" mod="1285282178028" size="2225" optimizedsize="1525">
          <def id="main" />
          <pre id="flash.display:Sprite" />
          <dep id="flash.display:StageScaleMode" />
          <dep id="flash.events:Event" />
          <dep id="mx.messaging.messages:MessagePerformanceInfo" />
          <dep id="mx.messaging.messages:HTTPRequestMessage" />
          <dep id="mx.messaging.messages:AcknowledgeMessage" />
          <dep id="flash.net:URLRequest" />
          <dep id="mx.messaging.messages:CommandMessage" />
          <dep id="flash.display:Loader" />
          <dep id="flash.system:ApplicationDomain" />
          <dep id="Error" />
          <dep id="mx.messaging.messages:SOAPMessage" />
          <dep id="mx.messaging.messages:AsyncMessageExt" />
          <dep id="flash.system:SecurityDomain" />
          <dep id="mx.managers:ISystemManager" />
          <dep id="mx.messaging.messages:RemotingMessage" />
          <dep id="mx.messaging.messages:AcknowledgeMessageExt" />
          <dep id="AS3" />
          <dep id="mx.messaging.config:ConfigMap" />
          <dep id="mx.events:FlexEvent" />
          <dep id="mx.messaging.messages:ErrorMessage" />
          <dep id="flash.system:LoaderContext" />
          <dep id="mx.messaging.messages:AsyncMessage" />
          <dep id="flash.display:StageAlign" />
          <dep id="mx.messaging.messages:CommandMessageExt" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/managers/ISystemManager)" mod="1259075991958" size="4795" optimizedsize="1386">
          <def id="mx.managers:ISystemManager" />
          <pre id="mx.core:IFlexModuleFactory" />
          <pre id="flash.events:IEventDispatcher" />
          <pre id="mx.core:IChildList" />
          <pre id="Object" />
          <dep id="flash.events:Event" />
          <dep id="mx.managers:IFocusManagerContainer" />
          <dep id="flash.text:TextFormat" />
          <dep id="AS3" />
          <dep id="mx.core:ISWFBridgeGroup" />
          <dep id="flash.geom:Rectangle" />
          <dep id="flash.display:DisplayObject" />
          <dep id="flash.display:Stage" />
          <dep id="flash.display:LoaderInfo" />
          <dep id="flash.display:Sprite" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/IFlexModuleFactory)" mod="1259075988973" size="976" optimizedsize="297">
          <def id="mx.core:IFlexModuleFactory" />
          <pre id="Object" />
          <dep id="AS3" />
          <dep id="flash.utils:Dictionary" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/SOAPMessage)" mod="1259075949815" size="1271" optimizedsize="699">
          <def id="mx.messaging.messages:SOAPMessage" />
          <pre id="mx.messaging.messages:HTTPRequestMessage" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/ISWFBridgeGroup)" mod="1259075989676" size="1224" optimizedsize="397">
          <def id="mx.core:ISWFBridgeGroup" />
          <pre id="Object" />
          <dep id="flash.events:IEventDispatcher" />
          <dep id="AS3" />
          <dep id="mx.core:ISWFBridgeProvider" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/events/FlexEvent)" mod="1259076013693" size="2417" optimizedsize="1480">
          <def id="mx.events:FlexEvent" />
          <pre id="flash.events:Event" />
          <dep id="AS3" />
          <dep id="mx.core:mx_internal" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\framework.swc(mx/utils/object_proxy)" mod="1259075999614" size="208" optimizedsize="125">
          <def id="mx.utils:object_proxy" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/ErrorMessage)" mod="1259075949565" size="1063" optimizedsize="541">
          <def id="mx.messaging.messages:ErrorMessage" />
          <pre id="mx.messaging.messages:AcknowledgeMessage" />
          <dep id="AS3" />
          <dep id="mx.messaging.messages:IMessage" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/core/ISWFBridgeProvider)" mod="1259075989676" size="785" optimizedsize="263">
          <def id="mx.core:ISWFBridgeProvider" />
          <pre id="Object" />
          <dep id="flash.events:IEventDispatcher" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/CommandMessageExt)" mod="1259075949799" size="1008" optimizedsize="464">
          <def id="mx.messaging.messages:CommandMessageExt" />
          <pre id="mx.messaging.messages:CommandMessage" />
          <pre id="flash.utils:IExternalizable" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/HTTPRequestMessage)" mod="1259075949565" size="1757" optimizedsize="880">
          <def id="mx.messaging.messages:HTTPRequestMessage" />
          <pre id="mx.messaging.messages:AbstractMessage" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/CommandMessage)" mod="1259075949799" size="4385" optimizedsize="2638">
          <def id="mx.messaging.messages:CommandMessage" />
          <pre id="mx.messaging.messages:AsyncMessage" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
          <dep id="flash.utils:IDataInput" />
          <dep id="mx.messaging.messages:IMessage" />
          <dep id="mx.messaging.messages:CommandMessageExt" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/AcknowledgeMessage)" mod="1259075949815" size="1725" optimizedsize="938">
          <def id="mx.messaging.messages:AcknowledgeMessage" />
          <pre id="mx.messaging.messages:ISmallMessage" />
          <pre id="mx.messaging.messages:AsyncMessage" />
          <dep id="mx.messaging.messages:AcknowledgeMessageExt" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
          <dep id="flash.utils:IDataInput" />
          <dep id="mx.messaging.messages:IMessage" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/AsyncMessage)" mod="1259075949799" size="2629" optimizedsize="1411">
          <def id="mx.messaging.messages:AsyncMessage" />
          <pre id="mx.messaging.messages:ISmallMessage" />
          <pre id="mx.messaging.messages:AbstractMessage" />
          <dep id="mx.messaging.messages:AsyncMessageExt" />
          <dep id="flash.utils:ByteArray" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
          <dep id="flash.utils:IDataInput" />
          <dep id="mx.messaging.messages:IMessage" />
          <dep id="mx.utils:RPCUIDUtil" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/utils/RPCStringUtil)" mod="1259075940689" size="1722" optimizedsize="959">
          <def id="mx.utils:RPCStringUtil" />
          <pre id="Object" />
          <dep id="AS3" />
          <dep id="mx.core:mx_internal" />
          <dep id="RegExp" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/managers/IFocusManagerComponent)" mod="1259075999302" size="1320" optimizedsize="326">
          <def id="mx.managers:IFocusManagerComponent" />
          <pre id="Object" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/MessagePerformanceInfo)" mod="1259075949799" size="1491" optimizedsize="730">
          <def id="mx.messaging.messages:MessagePerformanceInfo" />
          <pre id="Object" />
          <dep id="Date" />
          <dep id="AS3" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/AcknowledgeMessageExt)" mod="1259075949815" size="1044" optimizedsize="476">
          <def id="mx.messaging.messages:AcknowledgeMessageExt" />
          <pre id="mx.messaging.messages:AcknowledgeMessage" />
          <pre id="flash.utils:IExternalizable" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/AbstractMessage)" mod="1259075949815" size="6545" optimizedsize="3334">
          <def id="mx.messaging.messages:AbstractMessage" />
          <pre id="Object" />
          <pre id="mx.messaging.messages:IMessage" />
          <dep id="mx.utils:RPCObjectUtil" />
          <dep id="flash.utils:getQualifiedClassName" />
          <dep id="flash.utils:ByteArray" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
          <dep id="mx.core:mx_internal" />
          <dep id="flash.utils:IDataInput" />
          <dep id="mx.utils:RPCStringUtil" />
          <dep id="mx.utils:RPCUIDUtil" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\rpc.swc(mx/messaging/messages/AsyncMessageExt)" mod="1259075949799" size="968" optimizedsize="438">
          <def id="mx.messaging.messages:AsyncMessageExt" />
          <pre id="flash.utils:IExternalizable" />
          <pre id="mx.messaging.messages:AsyncMessage" />
          <dep id="AS3" />
          <dep id="flash.utils:IDataOutput" />
        </script>
        <script name="C:\work\sisa\snapshot\cc\unithru_rrubio_view\UniThru\Tools\FlexSDK3.5\3.5.0\frameworks\libs\flex.swc(mx/managers/IFocusManagerContainer)" mod="1259075999286" size="1056" optimizedsize="358">
          <def id="mx.managers:IFocusManagerContainer" />
          <pre id="flash.events:IEventDispatcher" />
          <pre id="Object" />
          <dep id="mx.managers:ISystemManager" />
          <dep id="AS3" />
          <dep id="flash.display:DisplayObject" />
          <dep id="mx.managers:IFocusManager" />
        </script>
      </scripts>
      <external-defs>
        <ext id="flash.utils:ByteArray" />
        <ext id="Math" />
        <ext id="RegExp" />
        <ext id="flash.system:ApplicationDomain" />
        <ext id="flash.display:StageAlign" />
        <ext id="XMLList" />
        <ext id="flash.events:Event" />
        <ext id="AS3" />
        <ext id="flash.utils:describeType" />
        <ext id="flash.net:URLRequest" />
        <ext id="flash.utils:IDataOutput" />
        <ext id="XML" />
        <ext id="flash.display:InteractiveObject" />
        <ext id="flash.display:LoaderInfo" />
        <ext id="flash.events:IEventDispatcher" />
        <ext id="flash.geom:Rectangle" />
        <ext id="QName" />
        <ext id="flash.utils:Dictionary" />
        <ext id="Error" />
        <ext id="flash.system:SecurityDomain" />
        <ext id="flash.display:IBitmapDrawable" />
        <ext id="Date" />
        <ext id="flash.display:DisplayObject" />
        <ext id="flash.accessibility:AccessibilityProperties" />
        <ext id="Object" />
        <ext id="flash.utils:IDataInput" />
        <ext id="flash.utils:flash_proxy" />
        <ext id="flash.display:DisplayObjectContainer" />
        <ext id="flash.text:TextFormat" />
        <ext id="flash.xml:XMLNode" />
        <ext id="flash.utils:IExternalizable" />
        <ext id="flash.display:Sprite" />
        <ext id="flash.display:Loader" />
        <ext id="flash.utils:Proxy" />
        <ext id="flash.geom:Point" />
        <ext id="flash.display:Stage" />
        <ext id="flash.system:LoaderContext" />
        <ext id="flash.geom:Transform" />
        <ext id="flash.utils:getQualifiedClassName" />
        <ext id="flash.display:StageScaleMode" />
      </external-defs>
    </report>

  • NativeProcess and IDataInput readObject()

    I have seen references on various site regarding this issue but am still getting this issue pretty consistently so thought I would see if I could get some support from here.
    Basically on reading a standard output from a NativeProcess I attempt to read the IDataInput using readObject and get #2030 End of file was encountered.  I can read as a String via readUTFBytes no problem.  So whats the process to manage this IDataInput as something other than a String i.e. Object, XML etc?
    Bearing in mind that I have no control over the data type received from the NativeProcess?
    Cheers,
    Simon

    Yes, it is separately. For another experimenting, I'm running multi-chatroom
    on xSocket in Java, I tried to get NP launch the chat (client) also created
    in Java, not passing any message/info back to NP but to xSocket server. I
    was surprise the client would stop sending/working suddenly, no error
    message on both sides. If I don't use NP, it work flawlessly and able to
    handle large volume of data without lost or significant delay. I am
    disappoint that NP is incapable for production use.
    I tried adding "flush" before and after the text is display in Java code but
    it doesn't solve. Someone may solve it but how many programs are available
    in sourcecode?

  • Delete File From Mounted Volume

    Hey,
    I am trying to delete the "Calendar Cache" files on both my laptop PowerBook G4 and the Mac Pro Quad that I sync my calendars with. I am using ChronoSync and the individual calendars sync fine, but there is a little house keeping needed with the cache file. They need to be deleted on both systems in order to "refresh" the views of the calendars.
    So after the sync of calendars, I have the software initiating an AppleScript that deletes both. Here's the script:
    +(* PowerBook Files / delete cache file *)+
    +(* Please note that both systems have the same username. This may be arise a conflict *)+
    +tell application "Finder"+
    + activate+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "useranthony"+
    +end tell+
    +(* Mac Pro Quad/ delete cache file *)+
    +tell application "Finder"+
    + mount volume "afp://10.10.10.1/anthonyabraira"+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "/volumes/useranthony"+
    +end tell+
    I am having trouble addressing a deletion on the networked Mac Pro Quad.

    why send it to the trash — just delete it...
    (* PowerBook Files / delete cache file )
    try
            do shell script "rm -rf /Library/Calendars/Calendar\\ Cache"
    end try
    you may need a delay for the Mac Pro Quad to mount
    ( Mac Pro Quad/ delete cache file *)
    --the mount and then the delay
    delay 4
    try
            do shell script "rm -rf /THE-CORRECT/PATH-HERE/Library/Calendars/Calendar\\ Cache"
    end try
    Tom

  • How Open And Print Proc C Genrated Text File Based Report ON Browser

    Dear Sir
    I have my old 6i forms from which i runs some Pro*c programmers with the help of HOST() command ,and then that generates a normal text file as a resultant report like file name "kha10"
    which i can easily open with any text client ,,,
    now what i want is that, to open this file on browser like web Report on my forms 10g like report builder 10g
    can anyone help me as it will be a gr8 help otherwise i would have to develop approx 100 reports.....
    any solution or any technique plzz help me

    bro my work is almost done apart from this virtual directory , how to make a virtual directory so that is dosent comes under
    http://........../form/
    i mean where to put my
    <virtual-directory virtual-path="/procrepo" real-path="c:\" />
    as my original file looks like bellow
    <?xml version="1.0"?>
    <!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
    <orion-web-app
         deployment-version="10.1.2.0.2"
         jsp-cache-directory="./persistence"
         temporary-directory="./temp"
         servlet-webdir="/servlet/"
    >
    <context-param-mapping name="configFileName">D:\DevSuiteHome_1/forms/server/formsweb.cfg</context-param-mapping>
         <virtual-directory virtual-path="/html" real-path="D:\DevSuiteHome_1/tools/web/html" />
         <virtual-directory virtual-path="/java" real-path="D:\DevSuiteHome_1/forms/java" />
         <virtual-directory virtual-path="/webutil" real-path="D:\DevSuiteHome_1/forms/webutil" />
         <virtual-directory virtual-path="/jinitiator" real-path="D:\DevSuiteHome_1/jinit" />
         <session-tracking cookies="disabled" />
    <!-- Uncomment this element to control web application class loader behavior.
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
    -->
    <security-role-mapping name="administrators">
    </security-role-mapping>
    </orion-web-app>
    plzzzzzzzzzzz help

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • How do I find, at-a-glance, the sample size used in several music files?

    How do I find, at-a-glance, the sample size used in several music files?
    Of all the fields available in a FInder Search, "Sample Size" is not available. Finder does offer a "Bits per Sample" field, but it only recognized graphic files and not music files.
    Running 10.8.5 on an iMac i5.
    I did search through a couple of communities but came up empty.
    Thank you,
    Craig

    C-squared,
    There is no View Option to allow display of a column of sample size. 
    For WAV or Apple Lossless files, it is available on the Summary tab (one song at a time, as you know).  For MP3 and AAC it is not available at all.
    You can roughly infer it from the files that are larger than expected for their time.
    99% of the music we use is at the CD standard of 16-bit, so I can guess that displaying it has never been a priority.  However, if you want to make a suggestion to Apple, use this link:
    http://www.apple.com/feedback/itunesapp.html

  • Windows no longer boots up, paging file error

    I just reinstalled windows on my mac last week because until now I had been running the old beta version of boot camp.
    Just a few days ago I started getting blue screens every so often and it happened again (twice to be exact) yesterday, however one of the times it booted up and informed me I might want to change my paging file size. Not quite sure what this was I went and found the paging file option in settings and found it was clicked on a set size...so I figured I'd set it on the option that lets windows decide for me hoping this would fix the blue screen problem.
    I shut down my computer later that night and now windows won't get to the desktop.
    When I start it up normally it runs the system check (which I cannot skip for some reason) which gets to 84% and then says \windows\Dump3865.tmp is cross-linked on allocation unit 1731772
    Above it it mentions there is an invalid size for my page file.
    I tried booting it up the in safe mode multiple times and every time it generates a list in dos and stops on windows\system32\Drivers\mup.sys
    I really don't want to have to reload windows again. Is there anyway to skip the system check (it says press anykey, but that has never worked for me) or any other way to get my paging files back to the way they were?
    Thank you.
    Oh I'm running leopard with windows XP professional on a macbook pro (last years model) if that helps in anyway.
    Message was edited by: Tommmmm

    A. run chkdsk
    B. What happens if you boot from XP CD and Repair System
    C. system file checker - from command "sfc /scannow"
    http://www.informationweek.com/news/windows/showArticle.jhtml?articleID=18530125 1
    http://windowshelp.microsoft.com/Windows/en-US/Help/f768809f-ed90-415f-a83f-89b4 2108b3551033.mspx

  • ITunes & Windows Vista Home - Error File C:\Program Data\Apple Computer\Installer\Cache\iTunes 10.5.142\iTunes.msi was rejected by digital signature policy.

    Tried
    https://discussions.apple.com/thread/2713232?start=0&tstart=0
    and
    http://www.vistax64.com/vista-general/159940-computer-blocking-anything-no-digit al-signature.html
    with no avail!!!
    iTunes opens after I click OK on the above message however I cannot do anything within the app its like Windows it preventing it from running.
    PLEASE HELP!!!

    Update:
    I tried what the diagnostic told me to do, and repaired the installation. I was able to burn a CD in iTunes, but after I restarted, the drives have disappeared again! Here's the diagnostic info now:
    Microsoft Windows Vista Home Edition (Build 6000)
    MICRO-STAR INC. MS-6728
    iTunes 7.6.0.29
    QuickTime 7.4
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.2
    Apple Mobile Device 1.1.3.26
    iTunes Serial Number 20D6EAF059AB94B4
    Current user is not an administrator.
    The current local date and time is 2008-01-15 19:09:32.
    iTunes is not running in safe mode.
    Video Display Information
    ATI Technologies Inc., Radeon X1600/X1650 Series
    ATI Technologies Inc., Radeon X1600/1650 Series Secondary
    ** External Plug-ins Information **
    Plug-in Name: Last.fm iTunes plugin
    Plug-in Loaded: Yes
    Plug-in Version: 0.0.13
    Plug-in File Version: 2.0.13.0
    Plug-in Path: C:\Program Files\iTunes\Plug-ins\itw_scrobbler.dll
    No drives showed up to be tested.

  • Error while deploying a PAR file from NWDS into an ECC.

    Hi all,
    I am getting this error while deploying a PAR file from NWDS into an ECC.
    Operation Failed: Please make sure the server is running or check the log (sap-plugin.log) for
    more detail.
    My server is running properly
    1 - Where is sap-plugin.log file? I don´t find it. 
    2 - Could there be another file with another name with information about the error?
    3 - Is there another way to deploy the file directly from the ECC?
    Regards,

    Hi,
    Just make sure you have maintained correct server setting to check the same open the NWDS and follow this path
    Windows/ Prefereces / SAP Enterprise Portal
    Check the following enteries
    Alias
    Host
    Port
    Login etc.
    Regards,

  • In order to create space on my MBA I just bumped iTunes media to G drive linked through Time Capsule.  Now pointed iTunes at new iTunes libary on G drive and, even though all music files are there, iTunes can only 'see' 10 albums. Any help appreciated.

    Bit more detail...
    Mac Book Air has been struggling for space for a while so I bough at time capsule a) for back up and b) to host my itunes folder remotely.  This didnt' work.  I took it into the Genius bar and the genius there told me that time capsule is not designed for anything other than back up.  Instead I have to connect a G drive through the time capsule's wireless router to my MBA. 
    I followed his instructions - moved my files from the Time Capsule and MBA directly onto the G Drive - which took a heartening 2 hrs so something must have been happening - and the held down 'Alt' when starting iTunes and selected the new itunes folder as the location of my itunes libarary which I wanted iTunes to 'point at'.  When I opened iTunes only 10 albums are visible now.
    In ITunes advanced preferences it says it is pointing at the correct folder.  The files are all cleary there when I open the G Drive folder to take a look.  But I cannot get iTunes to find them.
    Any suggestions? 
    Secondary challenge - in spite of deleting the original itunes folder on my MBA I still get messages pop up telling me my start up disk is out of space and I need to clear some - I expected to stop getting this message now I had done this exercise above.  I have emptied Trash.  Again - any pointers appreciated.  I am new to this world of 'intuitive' macbooks.
    Cheers

    After admittedly only a quick read the one thing you don't say is how you are trying to make this move.  Most people with moving library issues do it the wrong way.  Plenty of web sites tell you how to do it the wrong way.
    If the iTunes application is started before the drive with the library is fully mounted and awake iTunes will revert back to the internal drive.

  • I am using Windows 8.1 i have an External Hard Disk and one drive is now inaccessible due to sudden power failure few days ago. Now it shows "Data error (Cyclic redundancy check)". I want all my important files and Pics. How ?

    Hi,
    I am using Windows 8.1
    I have an External Hard Disk i have partitioned it to 4 parts.
    One drive is now inaccessible due to sudden power failure while listening Music from that drive few days ago.
    Now it shows "Data error (Cyclic redundancy check)".
    I tried all the procedures provided here like
    chkdsk /f, diskpart, rescan etc
    but no result :( (i mean all processes failed. They could not detect the drive).
    Please help me to get those data, pictures and project files.
    thank you

    Then why aren't you posting this in the Windows 8 forums found @
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro
    This is a Windows 7 forum for discussion about Windows 7.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Issue in Creation of XML file from ABAP data

    Hi,
    I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
    The required format is
    -<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
       - <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
              <Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
              <Header4  1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
               <Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
          </Header2>
       </Header1>
    Iu2019m using the call transformation to convert ABAP data to XML file.
    So please anybody can help how to define XML structure in transaction XSLT_TOOL.
    And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
    Please help me in this to get it resolved.

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • I am trying to update Adobe Bridge and Photoshop CS6, because it is not opening my CR2 files taken by my Canon 6D.  I have tried to go to help updates, and the software says that it is "Up to Date".  However, if I view the plug-in, it says that Camera R

    I am trying to update Adobe Bridge and Photoshop CS6, because it is not opening my CR2 files taken by my Canon 6D.  I have tried to go to help > updates, and the software says that it is "Up to Date".  However, if I view the plug-in, it says that Camera Raw is only version 7.1.  I can not find a direct download for Camera Raw 7.3, only the DNG converter, NOT CAMERA RAW!  Please Help!

    Did you fix your issue?  I am having the same one

Maybe you are looking for

  • Error in week number while running a discoverer reports. URGENT HELP NEEDED

    Hi All, we had a requirement of getting the week number for the given date in one of the columns. Here the start date of the year was not always 1-jAN so we had to create a function which returns the week number as an output. The problem that we are

  • Is the iPad for me?

    I currently have a Tablet but it is time for it to retire. I currently use MS Excel for sending my orders. I want to know if I could use the iPad to do this. I need to be able to filter data so that only products that have a quantity number in a colu

  • What itunes version supports 1st gen ipod touch and iphone 4s

    I recently purchased an iPhone 4S. I also have a 1st gen iPOD touch. I am concerned that t the new version of iTunes will not support the touch. Is there a version of iTunes that supports both? Thanks Lee Ann

  • CS6 web&design prem install (win7-64b)

    Hello, I have troubles to install the suite i've just purchased. Dowloading is allright (I tried the two different ways : http & dwl manager). Extraction allright too. But when I run the .exe file, it stops and say maybe I miss a file, reboot, close

  • How to appear records that belongs to a Catalog Mask in SRM Portal

    Hi, Imagine I have a mask with 2 records. This mask is associated with a user. Whenever I enter the SRM Portal to search records in this catalog, not only those 2 records appear, but all the items appear. Is there anything missing? Thanks, LM