Ok, like the title suggests, I have a lil paint function
drawing on a canvas in flex 2. What I need is to get that image all
captured and bundled up to send to asp.net VB. The site is here:
we are UNLIMITED .com Click on
start, then Draw, and you will get to play with that canvas. You
can draw all day, different brush sizes, colors, and erase. I need
a capture button there to get the image off the canvas into BYTE
format. Mainly what i need help on is sending that byte array from
flex to asp.net VB, and REALLY need help on catching that byte
array in asp.net VB and getting it to the point i save save it to
the server HDD via the file I/O. I have already been able to save
XML docs to the HDD with asp.net VB to be read by flex via the file
I/O. I really just need some asp.net vb code to do the "POST" catch
(or request), and get the image to PNG? format to be saved. This is
going to be a small paint program in flex, members can use to
create their avatar. I will be implementing say a crop, copy/paste,
drag and drop, resize and what not, to give my users more
flexability as far as what their image looks like. I'd really like
it to be as close to a basic "windows paint" program. But that's
another story. For some reason every time I look up passing
variables from flex (flash) to asp.net vb, it's POSTing form vars,
and really none of it has dealings with images. I know it's
probably really the same, but like I was trying to say, I just get
all kinds of confused with working with byte arrays and asp.net vb
and flex. I was actually supposed to have this site up and running
this past Aug, but with the swap to flex, the pains of membership
between flex and asp.net vb, and my general newbie beginnings of
this whole aspect of computers. Let's just say it's taken a bit
longer than expected.
So to recap from all my babbling:
I need to:
(flex)
Capture the image on that canvas (see link)
load to asp.net VB (pref. using POST)
(asp.net VB)
create an asp.net vb page to receive/request that image
reformat that image ( pref. PNG )
save the formatted image to the server HDD
This should be fairly simple, and I'm almost embarrassed to
ask for help. I've just been trying to work through this muck for
way too long, and I really need to get past this.
code snippets would be great, although just some good
resources to look at would be great too. I do entirely appreciate
any help in this matter.
Daniel Keeney
WebMaster
we are UNLIMITED .com