Passing a FileReference objet over a LocalConnection

Since the flash 10 fileReference security update, my uploader
has had to reworked. The uploader has 2 parts, one is the backbone
with all the fileReference objects, and the other is a manager that
is the core UI. The two SWFs communicate through a LocalConnection.
The site where the uploader is implemented is a fully dynamic AJAX
site, and the objective was the create a system that would allow
users to upload files while still being able to browse the site...
and keep everything in the same window.
All was well until the flash 10 fileReference security
update. I understand why the update was made, but I'm still looking
for a solution to my problem. Now that the update requires a
MouseEvent in order to open the browse() method, I'm having
troubles getting my FileRefence objects to the backbone. Before I
called a function over a LocalConnection to trigger a
FileReference.browse() method in the backbone so I could store the
fileRefence objects there, but that solution no longer works. I
have tried passing the FileReference objects over a LocalConnection
(objects keep their class thanks to the
DevArc
LocalConnectionManager) but the FileReference object is empty.
I have tried serializing the object with .writeObject(), but
again when I .readObject() I end up with a fileReference object but
with no properties. Any ideas if there is a solution here?
Thanks in advance.

Ryan - I ran into the same problem. All the reference info is
gone once you serialize the object. I have tried
registerClassAlias('flas.net.FileReference') and that keeps the
object in tact, but the info is all gone.
Any other ideas? I need some flex magic here.

Similar Messages

  • Hod do I pass a socket variable over a socket connection

    Anyone know what syntax I could use to pass a socket variable over a socket connection? I can't imagine it'll go as a string, int, or double. --That's all I know how to pass.                                                                                                                                                                                                                                                                                                                                                               

    I was trying to get two programs accesing a server
    program through the same socket connection. Are you
    telling me this is impossible? If so, please go to
    this link and give me a hand with the other way I
    think I can get this to work...Sure ya can....
    ...something like this:
    Server:
    ServerSocket serverSock = new ServerSocket(8888); // 8888 = whatever port you want to listen on
    while (bWaitingConnections)
      Socket socket = serverSock.accept(); // WAIT until client connects to our port.
      Thread thread = new MySocketHandlingThread(socket);
      thread.start();
    }Client:
    Socket socket = new Socket(sServerHostName, 8888);
    // ... connected to Server on port 8888 ....

  • URGENT : Pass non-serializable objects over sockets

    I am working with a non-serializable class.I can't change it to serializable(since it's an API class).I can't create a subclass either as I need to pass the same exact Object .I have tried wrapping it in a serializable class (as transient )but then the particular object that I need is not serialized.Is there a way to pass non-serializable objects over sockets?.Some other way of doing this?. Should i use RMI or Externalize?. Any help would be appreciated.

    {snip}
    Like this:
    public class SerializableLibraryClass extends
    LibraryClass implements Serializable {
    }Then you've got a class that is exactly the same as
    LibraryClass, but is now serializable.Not quite. The base class still isn't Serializable. Take, for example, the following code:
    public class A
        public int a1;
    public class B extends A implements Serializable
        public int b1;
    B beforeSend = new B();
    beforeSend.a1 = 1;
    beforeSend.b1 = 2;
    objectOutputStream.writeObject(b);
    B afterSend = (B)(objectInputStream.readObject());Both beforeSend and afterSend have fields a1 and b1. For beforeSend, a1 = 1 and b1 = 2. For afterSend, b1 = 2 but a1 = 0. The superclass wasn't Serializable; therefore, its members weren't Serialized and, when the object was created on the other side of the stream, a1 was left at its initial value.
    In short, you can't just Serialize the subclass. That Serialization won't apply to its superclasses.

  • Pass non-serializable objects over sockets

    I am working with a non-serializable class.I can't change it to serializable(since it's an API class).I can't create a subclass either as I need to pass the same exact Object .I have tried wrapping it in a serializable class (as transient )but then the particular object that I need is not serialized.Is there a way to pass non-serializable objects over sockets?.Some other way of doing this?.

    Have you considered leaving it in situ and using RMI to manipulate it remotely ?
    To be a little pedantic, if you need the "same exact object" then there's no technique that will work for you, since you can only copy an object between JVMs, not move it.
    D.

  • Passing a security context over JMS?

    After using certificate authentication from a browser at the front end, we have to pass some sort of security context over a JMS queue. Whatever I pass needs to be sufficient for reconnection to a 'Data Access' server.
    Has anybody got any ideas/experience?

    Ryan - I ran into the same problem. All the reference info is
    gone once you serialize the object. I have tried
    registerClassAlias('flas.net.FileReference') and that keeps the
    object in tact, but the info is all gone.
    Any other ideas? I need some flex magic here.

  • Unity Connection not passing CallerID to CUCM over SIP Trunk

    I'm trying to get CallerID working for Unity Connection Device Notification (and it seems everything else), however, when I run UC Remote Port Status Monitor and the Call-Out goes to CUCM for the Device Notification, no caller ID is presented to the CUCM SIP trunk.
    06:06:02, New Call, CalledId=,  RedirectingId=,  Origin=16,  Reason=1024,  CallGuid=, 
    CallerName=,  LastRedirectingId=,  LastRedirectingReason=1024,  PortDisplayName=LFC_CUCM-1-134,
    [Origin=Unknown],[Reason=Unknown]
    06:06:02,
    Dialing '99254753'
    06:06:32, Idle
    06:06:33, Idle
    Therefore, the out-going call to the PRI PSTN is:
    10:59:01.005: ISDN Se0/0/0:23 Q931: TX -> SETUP pd = 8  callref = 0x5B03
            Sending Complete
            Bearer Capability i = 0x8090A2
                    Standard = CCITT
                    Transfer Capability = Speech
                    Transfer Mode = Circuit
                    Transfer Rate = 64 kbit/s
            Channel ID i = 0xA98397
                    Exclusive, Channel 23
            Calling Party Number i = 0x0081, N/A
                    Plan:Unknown, Type:Unknown
            Called Party Number i = 0xC1, '9254753'
                    Plan:ISDN, Type:Subscriber(local)
    *Dec  6 10:59:01.513: ISDN Se0/0/0:23 Q931: RX <- CALL_PR
    I've looked through my SIP trunk on the CUCM side and for Inbound Calls, Connected Line ID and Presentation Name are set to "allowed" or "default" doesn't make a difference. RTMT Port Status also shows no "caller", so I'm thinking there is some way to set or allow the calling number on the Unity Connection (8.5) side.
    Oddly enough, I also noticed that in Unity Connection> Telephony Integrations > Port Group, if I change the Contact Line Name from nothing to "Unity" (or whatever), the Q931 debug outbound doesn't show ANY "Calling Party Numer - = XXXXX" and the carrier throws out the BTN as the ANI.
    10:46:00.837: ISDN Se0/0/0:23 Q931: TX -> SETUP pd = 8  callref = 0x5AFF
            Sending Complete
            Bearer Capability i = 0x8090A2
                    Standard = CCITT
                    Transfer Capability = Speech
                    Transfer Mode = Circuit
                    Transfer Rate = 64 kbit/s
            Channel ID i = 0xA98397
                    Exclusive, Channel 23
            Called Party Number i = 0xC1, '9254753'
                    Plan:ISDN, Type:Subscriber(local)
    Any ideas on where/how CallerID comes from, on Unity Connection with a SIP integration?
    THANKS!!
    Mike.

    I did not- my work around has been to put in a name for Contact Line Name under Port Group Basics Switch configuration in Unity Connection- this for some reason keeps CUCM from sending ANI TYPE/PLAN information in the Q931 message, and my carrier then sends a default ANI of the circuit's BTN. When I have time, I'll open up a TAC ticket.
    Mike.

  • Bridge getEnhancedMicrophone

    Hey there...
    I would like to get my hands on using the new AEC in flashplayer 10.3 to  enhance the overall audio quality in my one2one chat. The problem is that this was build back in AS2 and now I am stuck with it. My idea was maybe to  use the old AS2 SWF and load it into an AS3 container clip. There I would then grab the new getEnhancedMicrophone() and bridge it over back to the  AS2 file!? Has anybody done such thing? I know it sounds a bit like complete madness but do you think it would work!?
    thanks...

    that is just not an option right now for me.. :-(    But what i meant was actually how you would manage to get the data across and then back into the stream?
    I thought I try it this way:
    1. grab mic input in AS3 file
    2. send input to bytearray
    3. split bytearray into chunks (if necessary)
    4. send chunks over localconnection to AS2 file
    5. receive chunks
    but then what to do with it?  do I have to encode it back to something before i can put it back into the stream?  Or is it better to simply send the net connection object over to the AS3 file, then connect the mic directly?  phew... so many questions..  sorry ;-)
    Edit:  I just read somewhere that it's not possible to pass the netConnection object over via localConnection ..  so I guess that's out of question!?

  • Objects passed over RMI?

    When passing a serializable object over RMI (such as an ArrayList) which contains other objects, do the objects contained within this object (e.g. within the ArrayList) need to be serializable also?

    RMI server is very easy, if you want to make clear
    about this problem .
    you must read two interface . RemoteCall , RemoteRef
    Socket clientSecket = new Socket(RemoteHost ,port);
    OutputStream outputStream = clientSecket
    .getoutputStream();
    ObjectOutputStream out = new
    ObjectOutputStream(outputStream)
    out.write(Object);//
    then send a Object to server. if the object not be
    implements java.io.Serialisize , Exception will
    throw.
    are you clear ????? Sha BI ! !!!!!!Are you clear? RMI servers are much simpler than this, and you certainly don't need to know anything about either the RemoteCall or the RemoteRef interface. All this is done behind the scenes for you in RMI, just do call and return. Everyything passed or returned must be serializable, otherwise you get a NotSerializableException.

  • Can I pass username & password in JDBC URL in Crystal Reports 2008?

    Hi,
    I tried to put this URL in the CRConfig.xml file : jdbc:postgresql://hostname:5432/db_name?user=user_name&password=pw
    Without the user and password parameters, it works fine but I always have to enter the database information when I create a new report or refresh an existing report.
    With the parameters, when I create a new report, if I click on "Create new connection", Crystal Reports freezes. If I click on the connection in "My connections", then I get an "Invalid argument" error message.
    How can I configure the database information so that I don't always need to enter it manually?
    Thanks,
    Marianne

    Hi Marianne,
    We don't recommended you do that. The text is in the clear so anyone could use your log on info. You may be able to add your user name to the Report by editing the connection properties from the Set Location dialog box but to add your password would give anyone who opened your report your log on info.
    And the info would be passed to the DB over the network in the clear so someone could hack your info.
    Thank you
    Don

  • Passing a parameter list from a web form to a report

    I am using FORMS6 and REPORTS6, with OAS 4.07 on NT4 (SP3).
    In client server mode all works well - i am able to pass parameter lists from my calling form to the relevant reports and view them (using RUN_PRODUCT).
    However, when i try and do the same by deploying the web Form I come up against several obstacles.
    1. How do you pass a parameter list over without using "Paramform=Yes" - a waste of time seeing a html version of the reports parameter form when all the necessary parameters have been selected in the form.
    2. if i use web.show_document, with paramform=no, the report runs but with it's default settings.
    Any light you can shed would be greatly appreciated.

    Hi Tony ,
    Launcher form is just a simple form(Non database form) which will be having all fields that is required for the report and button to run the report .
    When button pressed trigger
    Pass all the parameters which are required using Run_product tool & Call the report by Web.Show_document
    Best way to see the report is in .pdf format in adobe acrobat reader
    I hope it will help you
    Bye
    Rao guduru

  • How do I write objects over a SocketChannel?

    Using the regular Socket class we can pass objects over sockets like this.
    Socket s = new Socket("127.0.0.1", 80);
    ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());
    out.writeObject(new Object());
    Now, I've looked through the documentation on the new Channel classes and have only seen ways to pass bytes over the channel, not an entire object. Is there an easy way to pass an entire object over a channel? Am I just missing an appropriate wrapper that adds this functionality?
    Thanks,
    Dave

    This code will help you converting an Object to a byte[]:
    //Object to send MUST implement Serializable
    SerializedObject anObject = new SerializedObject();
    //byte[] needed to send
    byte[] aByteArray = null;
    //the conversion
    java.io.ByteArrayOutputStream aByteArrayOutputStream = new java.io.ByteArrayOutputStream();
    java.io.ObjectOutputStream aObjectOutputStream = new java.io.ObjectOutputStream(aByteArrayOutputStream);
    aObjectOutputStream.writeObject(anObject);
    aObjectOutputStream.close();
    aByteArray = aByteArrayOutputStream.toByteArray();
    //When you receive the Object you should reverse the conversion
    //byte[] reveived from InputStream
    byte[] aReceivedByteArray;
    //Expected Object
    SerializedObject theExpectedObject = null;
    //the conversion
    java.io.ByteArrayInputStream aByteArrayInputStream = new java.io.ByteArrayInputStream(aReceivedByteArray);
    java.io.ObjectInputStream aObjectInputStream = new java.io.ObjectInputStream(aByteArrayInputStream);
    theExpectedObject = aObjectInputStream.readObject();
    That's one way to do it.
    You should watch out with Serializable object when sending it to another OS or JRE-version.

  • 2 scan passes of a 50-page double-sided docs to merge to a PDF?

    First scan pass on my scanner will generate the first PDF (name it PDF-A) with pages 1,3,5,7....49.
    Flip over the whole pile.
    2nd scan pass will generate the 2nd PDF (name it PDF-B) with pages 50, 48, 46, 44...2.
    Any easy way to combine, merge and/or "reverse-interleave" PDF-A and PDF-B to make a PDF with page 1,2,3,4,5,6....50 in Acrobat, or using some third party software?
    Or I have to manually and time-consumingly rearrange the pages to create one?
    Or I have to buy an expensive duplex scanner that would take up my desk space for such few-times-a-year jobs?
    I search all over Internet and I was surprised this wasn't even mentioned.

    YAY! Acrobat 8 Professional does it automatically and I have paid for it (FREE)!
    one pass, prompt to flip over, 2nd pass, then it makes the PDF I want, and does the OCR (make searchable) too.
    (I have been using the scanner software to make PDF, never knew I could scan from inside acrobat.)

  • Passing cookies to WSRP Provider

    When deploying a JSR168 portlet in OC4J 10.1.3.3 and registering it as a provider in Oracle Portal 10.1.4 the RenderRequest object does not contain all the cookie values from the original request.
    The "request" object in the portlet is of type PortletRequest. The following code will print out all available values. In our case only user-agent is showing up in the Enumeration.
    Enumeration propNames = request.getPropertyNames();
    while (propNames.hasMoreElements()) {
    String pName = (String) propNames.nextElement();
    out.print("<tr><td>Property Name: (");
    out.print(pName);
    out.print(")</td><td>");
    Enumeration propValNames=request.getProperties(pName);
    while (propValNames.hasMoreElements()) {
    String propVal = (String) propValNames.nextElement();
    out.println("Val==" + propVal);
    out.println("<br>");
    out.println("</td></tr>");
    I know passing cookies over WSRP is not specifically in the spec, is there any way to do this? Is there any way we can pass some custom value over WSRP back to the JSR168 portlet?

    I am not expert here. Have a look at portalconfig.xml. May be this may help:
    This setting will be used only if you are using an SSO product. Together with CookiePath (below) these two values are the domain and path that will be used for your secure SSO cookies. The Plumtree web server will send your secure SSO cookies to any remote portlet server whose URL matches the domain and path specified here. The domain must begin with a period ('.').
              <setting name="CookieDomain">
                   <value xsi:type="xsd:string">.plumtree.com</value>
              </setting>
    Edited by Bryazgin at 10/24/2007 1:42 PM

  • Insert Record Behavior - Not passing variables

    I have an ASP form which collects information and posts the data to the database on submission and redirects the user to a thank you page.
    The user is provided a support request and I would like to provide the user with an auto-generated number created when the database gets created.  However, the Action on the submit form is <%=MM_editAction%> since I'm using the insert record behavior and now I can't seem to pass the form variable over to be used in my results recordset.
    Should I use a session variable instead or is there a way to make the insert record bahavior work and pass in the form variable?

    So it appears that I'm not the only person with this problem.  One of the solutions I found was to use a Server.Transfer     Server.Transfer("thank_you.asp")
    instead of a Redirect.
    This works however, now my form validation is broken.

  • Better way for passing parameters ?

    Hi, i'm using a hashmap(string) in my java (parameters/value).
    At this time, i m calling Java methods from native code to retrieve value from this hashmap.
    I think it would be better to pass all the data to native code, and after retrieve data from C structure.
    i dont know what jni structure i should use to pass these datas(jobjectArray, jchararray). I cant pass string to native functions because there are too many parameters.
    May you help me.
    Thks

    If you need extremely robust solution, have a look at NewDirectByteBuffer and GetDirectBufferAddress - native functions to allocate ByteBuffer in native memory which could be accessed from Java or retrive the contents of the ByteBUffer allocated in Java. This is pretty neat, since you are not passing any parameters except for a reference to ByteBuffer which can be read directory from native code.
    SUch approach does buy off if you need to pass really huge structures (over 10M?..) since parameters to native code are passed 'by value' (so, EVERYTHING is copied) - if I remember everything correctly - haven't touched JNI for a while.
    I did some tests with early 1.4.x JVMs long time ago and the trade off wasn't very obvious in my case (< 2-3M of data passed in and out). So, unless you run in performance bottlenecks or can think of some generic 'protocol' for your application to read/write params from a buffer (thus eliminating/limiting changes to JNI interface every time you need to pass new parameter) i don't think it's worth it.

Maybe you are looking for

  • Officejet 4500 printing problems

    My officejet 4500 print jobs keep showing up as error in the que.  I can print a test page, but can't seem to get anything else printed.  thanks for your help

  • Wants to Learn XML

    Hi Every one, I am new in it. Can any one please tell me from where I can learn this XML. How to create, insert, update, read etc. If any one has the document or any source from where I can read all this please let me know. I will thankful to you for

  • Toshiba regza 52xv555d lcd tv hd/standard issues

    o.k got this t.v and its all good and well but.... there is absolutley not differance in picture quality between dvd ( sony dav-is10 upscaling dvd) sont bdp s370 and bog-standard t.v, the dvd player is set to 1080, toshiba tech support where about as

  • How to display japanese charecters in the JSP page

    Hi, Below is my jsp page where i am trying to read the japan character from the properties file through the Resource bundle. =============================================== <%@page contentType="text/html" %> <%@page pageEncoding="UTF-8"%> <%@ page im

  • Restart the Workflow

    Hello Friends, I have a problem. Let me explain my workflow design before explaining the problem. This is related to Service Entry Sheet workflow. <b>Design.</b> In this workflow, I have added a method for identifying agents. if it doesnt get any age