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

.NET Edition of the F-IN-BOX
xibicc
Posts: 3
Joined: Wed Jan 20, 2010 3:30 am

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

Postby xibicc » Wed Jan 20, 2010 3:36 am

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Jan 20, 2010 9:28 am

Thank you for your question.

What is a picture? A pixel array?

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

xibicc
Posts: 3
Joined: Wed Jan 20, 2010 3:30 am

Postby xibicc » Wed Jan 20, 2010 10:18 am

i want to receive a picture in flash action

this picture read from Local disk

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Jan 20, 2010 12:08 pm

Receive and show? Just load it as usually...

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

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

xibicc
Posts: 3
Joined: Wed Jan 20, 2010 3:30 am

Postby xibicc » Wed Jan 20, 2010 1:22 pm

action call the picture

picture is read by c# from database

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Jan 27, 2010 1:58 pm

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron