[flexcoders] Re: How to get image data and save it?

2008-11-10 Thread markflex2007
Maybe my question is how to read a file to binary format and save it
to db.

Thanks

Mark

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I develop an AIR application. I use file browser to select a image
> file and I want to get the image data and save it to database so other
> people can see the image by reading the image data in database.
> 
> I can not save the imageFile.url to database because other people do
> not have the image in their computer.I need save the real data of the
> image but I do not have a idea how to get it.
> 
> Thanks
> 
> Mark
> 
> PS:
> 
> The following is part of source code
> 
> private function loadImage():void
> {
>  var imagesFilter:FileFilter = new 
> FileFilter("Images",
> "*.jpg;*.gif;*.png");
>  imageFile = new File();
>  imageFile.browseForOpen("Select an Image", 
> [imagesFilter]);
>  imageFile.addEventListener(Event.SELECT, 
> imageSelected);
> }
>
> private function imageSelected(event:Event):void
> {
> imageHolder.source = imageFile.url;
> }
>




[flexcoders] Re: How to get image data and save it?

2008-11-10 Thread markflex2007
Hi Cato,

Please send me your post link.

I can not see your post with code.

Thanks

Mark



[flexcoders] Re: How to get image data and save it?

2008-11-10 Thread Cato Paus
Hi i posted you a message on markflex2007 with some source code look
at the flex project it reads bytes form the database.

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I develop an AIR application. I use file browser to select a image
> file and I want to get the image data and save it to database so other
> people can see the image by reading the image data in database.
> 
> I can not save the imageFile.url to database because other people do
> not have the image in their computer.I need save the real data of the
> image but I do not have a idea how to get it.
> 
> Thanks
> 
> Mark
> 
> PS:
> 
> The following is part of source code
> 
> private function loadImage():void
> {
>  var imagesFilter:FileFilter = new 
> FileFilter("Images",
> "*.jpg;*.gif;*.png");
>  imageFile = new File();
>  imageFile.browseForOpen("Select an Image", 
> [imagesFilter]);
>  imageFile.addEventListener(Event.SELECT, 
> imageSelected);
> }
>
> private function imageSelected(event:Event):void
> {
> imageHolder.source = imageFile.url;
> }
>




[flexcoders] Re: How to get image data and save it?

2008-11-10 Thread Cato Paus
I have sent it to you on your [EMAIL PROTECTED] with all the
source code.. or do you use a other email?

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I develop an AIR application. I use file browser to select a image
> file and I want to get the image data and save it to database so other
> people can see the image by reading the image data in database.
> 
> I can not save the imageFile.url to database because other people do
> not have the image in their computer.I need save the real data of the
> image but I do not have a idea how to get it.
> 
> Thanks
> 
> Mark
> 
> PS:
> 
> The following is part of source code
> 
> private function loadImage():void
> {
>  var imagesFilter:FileFilter = new 
> FileFilter("Images",
> "*.jpg;*.gif;*.png");
>  imageFile = new File();
>  imageFile.browseForOpen("Select an Image", 
> [imagesFilter]);
>  imageFile.addEventListener(Event.SELECT, 
> imageSelected);
> }
>
> private function imageSelected(event:Event):void
> {
> imageHolder.source = imageFile.url;
> }
>




[flexcoders] Re: How to get image data and save it?

2008-11-10 Thread Cato Paus
I have sent you a copy of the source to at [EMAIL PROTECTED]

--- In flexcoders@yahoogroups.com, Barry Gee <[EMAIL PROTECTED]> wrote:
>
> any chance of getting that code too? its a problem im trying to fgure 
> out too.
> 
> thanks
> 
> Barry.
> 
> 
> Cato Paus wrote:
> >
> > I have sent it to you on your [EMAIL PROTECTED] 
> >  with all the
> > source code.. or do you use a other email?
> >
> > --- In flexcoders@yahoogroups.com 
> > , "markflex2007" 
> > wrote:
> > >
> > > Hi,
> > >
> > > I develop an AIR application. I use file browser to select a image
> > > file and I want to get the image data and save it to database so
other
> > > people can see the image by reading the image data in database.
> > >
> > > I can not save the imageFile.url to database because other people do
> > > not have the image in their computer.I need save the real data
of the
> > > image but I do not have a idea how to get it.
> > >
> > > Thanks
> > >
> > > Mark
> > >
> > > PS:
> > >
> > > The following is part of source code
> > >
> > > private function loadImage():void
> > > {
> > > var imagesFilter:FileFilter = new FileFilter("Images",
> > > "*.jpg;*.gif;*.png");
> > > imageFile = new File();
> > > imageFile.browseForOpen("Select an Image", [imagesFilter]);
> > > imageFile.addEventListener(Event.SELECT, imageSelected);
> > > }
> > >
> > > private function imageSelected(event:Event):void
> > > {
> > > imageHolder.source = imageFile.url;
> > > }
> > >
> >
> >
>




Re: [flexcoders] Re: How to get image data and save it?

2008-11-10 Thread Fotis Chatzinikos
MArk search your previous thread... i have seen the code... Possibly in an
attachment cannot remember...

On Mon, Nov 10, 2008 at 5:56 PM, markflex2007 <[EMAIL PROTECTED]>wrote:

>   Hi Cato,
>
> Please send me your post link.
>
> I can not see your post with code.
>
> Thanks
>
> Mark
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


Re: [flexcoders] Re: How to get image data and save it?

2008-11-10 Thread Barry Gee
any chance of getting that code too? its a problem im trying to fgure 
out too.

thanks

Barry.


Cato Paus wrote:
>
> I have sent it to you on your [EMAIL PROTECTED] 
>  with all the
> source code.. or do you use a other email?
>
> --- In flexcoders@yahoogroups.com 
> , "markflex2007" <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi,
> >
> > I develop an AIR application. I use file browser to select a image
> > file and I want to get the image data and save it to database so other
> > people can see the image by reading the image data in database.
> >
> > I can not save the imageFile.url to database because other people do
> > not have the image in their computer.I need save the real data of the
> > image but I do not have a idea how to get it.
> >
> > Thanks
> >
> > Mark
> >
> > PS:
> >
> > The following is part of source code
> >
> > private function loadImage():void
> > {
> > var imagesFilter:FileFilter = new FileFilter("Images",
> > "*.jpg;*.gif;*.png");
> > imageFile = new File();
> > imageFile.browseForOpen("Select an Image", [imagesFilter]);
> > imageFile.addEventListener(Event.SELECT, imageSelected);
> > }
> >
> > private function imageSelected(event:Event):void
> > {
> > imageHolder.source = imageFile.url;
> > }
> >
>
>