jagabcdeff wrote:
>Hi,
>
>Now i am working on uploading file from local system to oracle
>database.
>How to do this with Flex.
>
>
I've recently done this, and the process I used looks something like this:
If Flash Player 7 and Non ActiveX player
- Disable upload, prompt for upgrade to latest playet with Express
Install
If Flash Player 7 and ActiveX player
- Use a combination of hidden IFRAME with an upload form and the
Flash / JavaScript integration kit. This is similar to the approach
outline here:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19382
but a cleaner implementation because of the using the Flash / JS kit.
If Flash Player 8
- Create a FileAPI version 8 .swf file to allows for multiple upload
via FileReferenceList and load the .swf into an mx:Loader. Call methods
on FileAPI to handle upload. The FileIO .swf from
http://www.macromedia.com/devnet/flex/articles/fp8_features.html only
allowed for single file uploads, so I created my own to handle multiple
file uploads.
The reason upload for Flash Player 7 only works on IE is because on
FireFox you can't programmatically "click" the input type="file" hidden
form element to have it show the browse dialog.
Sorry I can't be more specific here, but the links above should point
you in the right direction for creating your own upload solution.
Also, I tried the route of creating intrinsic classes for FileReference
and FileReferenceList, and then just used the those in a Flex app, then
wrote a simple Java app to turn the .swfs from version 7 to version 8
and deployed the .swfs on a server. This worked for "simple" Flex
applications (using the Flash 8 file api directly), but setting a more
complex Flex application to version 8 broke it, so I had to go back to
the approach of loading the FileAPI version 8 .swf file into the Flex
version 7 .swf.
The approach approach is to create a seemless upload experience.
Clicking the upload button in Flex will open the file browse dialog.
Upon selecting file(s), the upload process begins showing all of the
files and their progress. If you're having trouble, you can also create
a "separate" upload process. Have the upload button open a javascript
window with an upload form. Use the upload form's browse and submit
buttons to handle the file upload. When the form closes, notify the
Flex application that the upload is complete.
-d
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/