[Flashcoders] local file thumbnail preview :: possible?
using fp 10, is it possible to generate a thumb preview of the user's selected local image files that they want to upload via FileReference.load() ? or some other method? thanks, artur - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] local file thumbnail preview :: possible?
Yes, it's possible. The FileReference object now allows you to access the contents of a file uploaded by the user directly. You can manipulate it and pop-up a save dialog, again with FileReference (but the action has to be initiated by the user, such as a button click), and save the modified file locally, without bouncing it to a server. Cheers Juan Pablo Califano 2008/11/17, artur [EMAIL PROTECTED]: using fp 10, is it possible to generate a thumb preview of the user's selected local image files that they want to upload via FileReference.load() ? or some other method? thanks, artur - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] local file thumbnail preview :: possible?
does anyone have an online samples of this feature/property in action? best, *artur :.* - *www.artur.com* - [EMAIL PROTECTED] - *ph:646.797.3320* Juan Pablo Califano wrote: Yes, it's possible. The FileReference object now allows you to access the contents of a file uploaded by the user directly. You can manipulate it and pop-up a save dialog, again with FileReference (but the action has to be initiated by the user, such as a button click), and save the modified file locally, without bouncing it to a server. Cheers Juan Pablo Califano 2008/11/17, artur [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: using fp 10, is it possible to generate a thumb preview of the user's selected local image files that they want to upload via FileReference.load() ? or some other method? thanks, artur - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] local file thumbnail preview :: possible?
I realize my reply doesn't really answer you question (you were asking about displaying the image rather than downloading it back), but I think it must be also possible. You can access to the file raw data as a ByteArray, but you still have to convert that into a bitmap (or bitmapdata first?). It's possible in Flex: http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/ So, I think it should be possible in plain Actionscript. Cheers Juan Pablo Califano 2008/11/17, Juan Pablo Califano [EMAIL PROTECTED]: Yes, it's possible. The FileReference object now allows you to access the contents of a file uploaded by the user directly. You can manipulate it and pop-up a save dialog, again with FileReference (but the action has to be initiated by the user, such as a button click), and save the modified file locally, without bouncing it to a server. Cheers Juan Pablo Califano 2008/11/17, artur [EMAIL PROTECTED]: using fp 10, is it possible to generate a thumb preview of the user's selected local image files that they want to upload via FileReference.load() ? or some other method? thanks, artur - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders