# Upload Binary Data From Flash

**URL:** https://forum.kirupa.com/t/upload-binary-data-from-flash/204310
**Category:** flash
**Created:** [October 18, 2006, 6:53pm UTC](https://forum.kirupa.com/t/upload-binary-data-from-flash/204310 "2006-10-18T18:53:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![buginajar](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@buginajar](https://forum.kirupa.com/u/buginajar)
#### Post date: [October 18, 2006, 6:53pm UTC](https://forum.kirupa.com/t/upload-binary-data-from-flash/204310/1 "2006-10-18T18:53:31Z")

</div>

We ran up against a problem that I was hoping someone could help with. I’ll try to spare whatever details are not needed.

Basically, I want to upload an image that has been loaded into Flash to a server. I can download from a server to the movie with a simple LoadMovie. However, sending it back has me perplexed.

I know about the FileReference class in Flash 8, but it seems to only work for uploading actual images on a user’s hard drive that they select.

Let’s assume that instead we have a JPEG in our movie and we want to send it back to the server for whatever reason. I’m aware that we can loop though each pixel and convert it to a string, and send that string. Unfortunately, that doesn’t work out for us in our unique situation. We really need a binary method of transmitting it.

Does anyone know if this is possible? If not in Flash 8, can it be done in Flash 9/Flex?

Any help would be greatly appreciated!
