PDA

View Full Version : Saving an image to the server?


Potemkyn
05-05-2011, 01:43 PM
I'm just starting to look into this, I see that there is a way to save files on a server, I'm curious how one would send an image, not a file, to do this.

I use ASP (VB) and ASP.NET (C#) for my sever interaction, which is to gather or store data in a MS SQL database. Can flash pass an image to a php or ASP.NET page and can the page create a new image file with that data?

Thanks

Mike

frostframes.com
05-06-2011, 01:03 AM
You need AS3 to send a JPG or PNG encoded byteArray to a server-side script (e.g. PHP) which then saves it as a file.
See /devnet/flash/articles/saving_flash_graphics.html at the Adobe website.

Potemkyn
05-06-2011, 04:34 PM
That looks good - I'll just have to come up with the ASP.NET portion, which is also on the net!

Thanks! :)

MC

David2.0
05-14-2011, 09:43 PM
Wait, I thought you could do this in AS2 also

Potemkyn
05-16-2011, 05:09 PM
I hope so. I relaized after I posted that the current Navigator is written in AS2.0 While I am working on a design that will be written in 3.0, it ain't there yet!