[Red5] Send image to client
Ngoc Dao
ngocdaothanh at gmail.com
Fri Dec 21 11:12:02 PST 2007
> Q2. What is the effective way to send an image to client? I think sending raw bitmap data from Red5 to an BitmapData object in flash is not effective.
I tried the following and succeeded displaying images from Red5:
* Send JPEG data in byte[] from Red5
* The flash client will receive an array of numbers, loop through the
array and write each element to a ByteArray
* Load the ByteArray into a Loader using loadBytes
* addChild(the loader's content)
I still have a question. I am using Red5 v0.6.3 Final. Is that true
that this version does not support AMF3 so that I can send the
ByteArray directly (not using byte[]) from Red5?
Regards,
Ngoc.
On Dec 21, 2007 7:49 PM, Dan Rossi <spam at electroteque.org> wrote:
> check out the hessian web service exporter available in spring. I
> believe that is useful for filesharing capabilities.
>
>
> On 21/12/2007, at 9:32 PM, Ngoc Dao wrote:
>
> >> sit your captcha application on tomcat and have access to your
> >> captcha data in Red5
> >> since they both share the same VM
> >
> > Thank you for your advice. As I understand, it's possible share data
> > across all objects through the use of a singleton class, or through
> > static variables and methods. Are there other ways to share data
> > between Tomcat and Red5?
> >
> > Regards,
> > Ngoc.
> >
> >
> > On Dec 20, 2007 7:17 AM, Dominick Accattato <daccattato at gmail.com>
> > wrote:
> >> Ngoc:
> >>
> >> Red5 has an embedded tomcat servlet container in it. So you could
> >> sit your
> >> captcha application on tomcat and have access to your captcha data
> >> in Red5
> >> since they both share the same VM.
> >>
> >>
> >>
> >> On Dec 19, 2007 1:16 PM, Ngoc Dao <ngocdaothanh at gmail.com> wrote:
> >>>
> >>>> Q2: why aren't you sending your images using http. Is there a
> >>>> need to
> >> send
> >>>> using RTMP?
> >>>
> >>> Because I want to use the image for CAPTCHA. If you serve image from
> >>> another HTTP server, you have to build a solution to send CAPTCHA
> >>> key
> >>> from HTTP server to Red5, which is not always a nice thing.
> >>>
> >>> Regards,
> >>> Ngoc DAO.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On Dec 20, 2007 2:48 AM, Dominick Accattato <
> >>> daccattato at gmail.com> wrote:
> >>>> Q1: not sure
> >>>>
> >>>> Q2: why aren't you sending your images using http. Is there a
> >>>> need to
> >> send
> >>>> using RTMP?
> >>>>
> >>>>
> >>>>
> >>>> On Dec 19, 2007 2:09 AM, Ngoc Dao < ngocdaothanh at gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>> Dear all.
> >>>>>
> >>>>> I'm new to Red5. I have do some searching but could not find the
> >>>>> answer to these 2 questions:
> >>>>>
> >>>>> Q1. Is there an existing CAPTCHA solution for flash implemented in
> >> Red5?
> >>>>>
> >>>>> Q2. What is the effective way to send an image to client? I think
> >>>>> sending raw bitmap data from Red5 to an BitmapData object in
> >>>>> flash is
> >>>>> not effective.
> >>>>>
> >>>>> Could you help?
> >>>>>
> >>>>> Regards,
> >>>>> Ngoc DAO.
> >>>>>
> >>>>> _______________________________________________
> >>>>> Red5 mailing list
> >>>>> Red5 at osflash.org
> >>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Dominick Accattato, CTO
> >>>> Infrared5 Inc.
> >>>> www.infrared5.com
> >>>> _______________________________________________
> >>>> Red5 mailing list
> >>>> Red5 at osflash.org
> >>>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>>
> >>>>
> >>>
> >>> _______________________________________________
> >>> Red5 mailing list
> >>> Red5 at osflash.org
> >>> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>>
> >>
> >>
> >>
> >> --
> >> Dominick Accattato, CTO
> >> Infrared5 Inc.
> >> www.infrared5.com
> >> _______________________________________________
> >> Red5 mailing list
> >> Red5 at osflash.org
> >> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>
> >>
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
More information about the Red5
mailing list