Try this,
$result = mysql_query("SELECT * FROM $tableName WHERE id = '$id'");
$row = mysql_fetch_row($result);
$myImage = base64_decode ($row[2]);
echo "result=$myImage";
and in flash after calling the php file:
private function completeHandler (event:Event):void
{
var myBytes:ByteArray = ByteArray(event.currentTarget.data.result);
trace(myBytes);
On 27 June 2011 10:27, nvxuser <[email protected]> wrote:
> I wrote my array collection to byte array.. and send to the server
> side. It takes less time to reach.. One doubt here.. how can i convert
> it back (to array collection)
>
> My value object contains 32 fields and list contains more than 3000 in
> hierarchical data. i wrote this to bytearray using the following code
>
> var byteArray:ByteArray = new ByteArray();
> byteArray.writeObject(taskCollection);
>
> And send it over the page.. At the served side wrote
> byte[] TaskByteArray;
>
> it gets a byte array of size {55555555}
> how can i convert it back (to array collection)
> Jst give me a hint..
>
> On Jun 24, 10:22 am, HISSAM <[email protected]> wrote:
> > Why dont you convert to byte array and then send across the network and
> at
> > the server side convert it to the required type
> >
> > On 23 June 2011 15:17, nvxuser <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Dear All,
> >
> > > In my application i am sending an array collection
> > > to .Net through FluorineFx . My data is in the form of Hierarchical
> > > model. Array collection length is one. That object contains more than
> > > 100 records as child, each child has its own children then so on..
> > > When total records length (including all children) is less than 500 it
> > > takes less time to send data to .Net method. When the record count is
> > > high higher the time. When record count exceeds 3000 it takes more
> > > than 4 minutes to reach .net method.
> >
> > > Any help will be appreciated. Thanks in advance
> >
> > > Regards,
> > > NVXUSR
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=en.
> >
> > --
> >
> > Hissam,
> > Flex Developer,
> > INDIA.
> > (m) +919860694301
> > If I CRY angels deserves to DIE.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
--
*Arindam Mojumder*
*
*
Visit My Flickr <http://www.flickr.com/photos/60859366@N06/sets/>
<http://www.flickr.com/photos/arindam-mojumder/sets/>Visit My Facebook
<http://www.facebook.com/Arinda.Mojumder>
<http://twitter.com/arindam_arindam>Visit My Twitter
Account<http://twitter.com/arindam_arindam>
<http://scripto-mania.blogspot.com/>Visit My
GBlogger<http://scripto-mania.blogspot.com/>
<http://nilbristi.wordpress.com/>Visit My Wordpress
Blog<http://nilbristi.wordpress.com>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.