Ten Tips for Building a Flash Remoting Application
Subject:   Images? Movies?
Date:   2003-10-05 23:29:16
From:   anonymous2
Response to: Images? Movies?

We have a DB of tens of thousands (and the project is yet to be in full blown, so eventually we expect several hundreds of thousands) of images. They are NOT stored as files on disc for various reasons so we want to stream them to Rich Web Clients (Flash being the main target), let the users apply all kind of changes on a image and then stream it back to server.
The whole point is if Flash can actually do these things via Remoting.
Full Threads Newest First

Showing messages 1 through 6 of 6.

  • Images? Movies?
    2003-10-07 04:23:37  anonymous2 [View]

    Well, what I realized from my own experiments it was finally confirmed by "an insider". You CANNOT send images/movies/sound via Flash Remoting!
    What is weird, technically speaking the Flash Player and the AMF format allow us to do it. But what MM did (and it seems that all big companies become greedy sooner or later), was to not expose these methods via Remoting, but only via Flash Communication Server.
    So in order to use something that there you already have inside the Player, you have to BUY yet another product.... which by the way is not even useful for my problem because I do NOT want live video, real-time communications blah, blah, blah. I just wanted to transfer some images back and forth from the player to the server. And it's even not possible, even too expensive to do it!
    • Images? Movies?
      2003-10-25 10:16:20  anonymous2 [View]

      Just use LoadMovie. That works with images. If your images are stored in a database, use a server-side page to pass the image:

      myImage.loadMovie("myImagePage.cfm?id=" + someId);

      In CF:

      <cfparam name="" default="0" type="number">
      <CFQUERY NAME="rs" DATASOURCE="myimages">
      SELECT imagename FROM mytable WHERE imageid =
      <!--- ///////////////////////////////////////////////////// --->
      <!--- // Force the browser to download the image file. //--->
      <!--- ///////////////////////////////////////////////////// --->
      <CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\#rs.imagename#"><cfabort>
      <CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\blank.gif"><cfabort>
      • Images? Movies?
        2003-10-30 01:11:28  xeal [View]

        OMG... before replying why don't you READ what is written above... I will repeat only one sentence:
        "You CANNOT send images/movies/sound via Flash Remoting!"

        So your loadMovie thing does NOT make any sense!


        P.S. I didn't think there can be something worse than VB ... until I saw the first piece of CF "code" :)))
        • Images? Movies?
          2003-10-30 06:01:51  anonymous2 [View]

          >P.S. I didn't think there can be something worse than VB ... until I saw the first piece of CF "code" :)))

          There's nothing wrong with CF or VB. Try them sometime. You'll be surprised when you get things written faster.

          No, Flash Remoting does not do everything. Used in conjunction with loadMovie it does exactly what you want it to do. What exactly are you looking for?
          • Images? Movies?
            2003-12-14 23:50:52  xeal [View]

            Well, Basic was my first language on the old ZX Spectrum... some years ago :)
            Then, I also used VB for Win16 then Win32, until Delphi was out then C++ Builder.
            I highly prefer C/C++/Java/C# syntax and for example now I'm using .NET and C# for web dev. And C++ for non-Windows things. And I do not have any reason to buy CF ... to get what? A fancy HTML-looking syntax? :)
            Some time ago, while I was still a "greenhorn" in Flash Remoting, I wanted TO SEND images from Flash to server. Then I realized it's simply not possible. The Flash Player does NOT send the MovieClip object (among many others) via AMF. As simple as that.
            So I changed the strategy and I'm sending back to server the list of "changes" applied to the image, then the server does the real processing and the Flash Player is reloading the image via loadMovie.
            And, btw, even if I would like "to donate" some money to MM and buy the CF server... it would be useless... it does not run on my target platform... and it will never do it ;)

        • Images? Movies?
          2003-11-08 13:28:29  anonymous2 [View]

          Yes you can do what you are planning within flash however it would require a bit of CF. How do I know? I have already built what you have described above. Cheers-