Professional Web Applications Themes

How to send files to client - Macromedia Flex General Discussion

Hi, Does anyone know how to send a file to the client from Flex. My scenario is this: 1) Pass some parameters to java layer 2) Java layer processes the results and saves them in PDF format (in memory) 3) Byte data from PDF is passed to Flex layer 4) Send bytes to client I was able to do (4) in a JSF view by writing to the response stream, is there a similar method in Flex? Thanks in advance, Vackar...

  1. #1

    Default How to send files to client

    Hi,

    Does anyone know how to send a file to the client from Flex. My scenario is
    this:
    1) Pass some parameters to java layer
    2) Java layer processes the results and saves them in PDF format (in memory)
    3) Byte data from PDF is passed to Flex layer
    4) Send bytes to client

    I was able to do (4) in a JSF view by writing to the response stream, is there
    a similar method in Flex?

    Thanks in advance,
    Vackar

    Vackar Guest

  2. #2

    Default Re: How to send files to client

    one easy way would be to write the file on the server file system and class FileReference.download() method passing the path that file.
    atta707 Guest

Similar Threads

  1. Cannot send multiple SMS on two client simulators
    By silverknife in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: February 18th, 05:31 AM
  2. How to actively 'send' web pages to client browser
    By Terry Hayes in forum PHP Development
    Replies: 2
    Last Post: December 14th, 03:02 PM
  3. HOWTO: Send Secure Data To Client Using SSL
    By Dan Sikorsky in forum ASP
    Replies: 3
    Last Post: October 18th, 04:46 PM
  4. how to actively send html to client browser?
    By Terry Hayes in forum Web Design
    Replies: 1
    Last Post: September 14th, 09:29 PM
  5. send page to client when session expires
    By Chris Barber in forum ASP
    Replies: 0
    Last Post: July 21st, 10:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139