Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2007, 08:14 AM
Member
 
Join Date: Sep 2006
Posts: 38
Default Is there any way to pass IMAGE data loaded from a file back to FLEX/Flash?

I'm trying to save/load images to/from files to Flex/Flash. I've been able to SAVE data coming from Flex by using an HTTPService, and then saving the result as a ByteArray, but I can't seem to find any combination that allows me to LOAD a binary file, and then pass that data back to Flex accurately

Can anyone here assist?

Thanks in Advance,

Steve

Reply With Quote
  #2 (permalink)  
Old 04-19-2007, 12:25 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Is there any way to pass IMAGE data loaded from a file back to FLEX/Flash?

The best way is to convert the binary data to Hex string. For example, 2 bytes binary data 0x01 0x02 can be converted to string "0102". After passing a Hex string from swfkit to actionscript, you can then convert it to a ByteArray.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.