Page 1 of 1

how to return a picture in c#,and how to receive it in ac3

Posted: Wed Jan 20, 2010 3:36 am
by xibicc
how to return a picture in c#,and how to receive it in ac3

Posted: Wed Jan 20, 2010 9:28 am
by Softanics
Thank you for your question.

What is a picture? A pixel array?

Thank you.

Posted: Wed Jan 20, 2010 10:18 am
by xibicc
i want to receive a picture in flash action

this picture read from Local disk

Posted: Wed Jan 20, 2010 12:08 pm
by Softanics
Receive and show? Just load it as usually...

Or the problem is that you can't pass the path to a movie?

Thank you.

Posted: Wed Jan 20, 2010 1:22 pm
by xibicc
action call the picture

picture is read by c# from database

Posted: Wed Jan 27, 2010 1:58 pm
by Softanics
Action loads a picture using some relative path, e.g. "Image1.jpg".

You handle the event OnLoadExternalResourceByRelativePath:

Code: Select all

private void OnLoadExternalResourceByRelativePath(object sender, String strRelativePath, System.IO.Stream Stream, ref bool Handled)   
{   
    if (strRelativePath == "Image1.jpg")
    {
        Stream.Write( ... ); // write here the image content from database
        Stream.Close();

        Handled = true;
    }
}


Thank you.