[flexcoders] Re: Transfer Images with FDS
bump --- In flexcoders@yahoogroups.com, "cheftimbob" <[EMAIL PROTECTED]> wrote: > > We have a middle layer that is responsible for storing files in a > repository. We provide web services using SOAP and attachments, DIME, > that allow injection and retrieval of these files, mostly TIFF images. > > We're planning on utilizing Flex and FDS for various interactions. If I > capture these images as Stream on the FDS layer, how can I transfer the > file to the Flex client? > > You can't return attachments with SOAP calls from the client, right? > > I don't want to cache the image to disk on the server side and retrieve > via URL. I'd like to transfer the binary data over the wire in the > communication between the client and FDS. How do you deal with the data > on the client side? > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
RE: [flexcoders] Re: Transfer Images with FDS
I guess you could probably send it as a binary array and then convert it on the client-side? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of cheftimbob Sent: Monday, October 09, 2006 5:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Transfer Images with FDS bump --- In [EMAIL PROTECTED]ups.com, "cheftimbob" <[EMAIL PROTECTED]..> wrote: > > We have a middle layer that is responsible for storing files in a > repository. We provide web services using SOAP and attachments, DIME, > that allow injection and retrieval of these files, mostly TIFF images. > > We're planning on utilizing Flex and FDS for various interactions. If I > capture these images as Stream on the FDS layer, how can I transfer the > file to the Flex client? > > You can't return attachments with SOAP calls from the client, right? > > I don't want to cache the image to disk on the server side and retrieve > via URL. I'd like to transfer the binary data over the wire in the > communication between the client and FDS. How do you deal with the data > on the client side? > __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: Transfer Images with FDS
Just to give you a little more complete answer to this. If you look at the flash.display.BitmapData class, it has the ability to populate a Bitmap from a byte array of pixel data, so you could transfer the bytes to the client and display them there. Unfortunately the graphics data is not going to be compressed directly but we do have gzip compression support in the player as part of the flash.utils.ByteArray class. In the Java side you’d compress the data using a gzip library and in the flash side you’d uncompress it. I’m not an expert on the graphics support in flash so someone please correct me if this is not the best approach. I think alternatively you could request the image via a URL in the flash player (via the Loader class) but just generate it in memory and write the response data directly into the socket. That would potentially be more efficient on the client side since the native code would be processing the image data, though if you go the byte array route, most of the operations are happening in native code anyway. Also your original data might be in jpeg format not just a pure 2D array of pixel data so that might be more convenient. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Monday, October 09, 2006 4:08 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Transfer Images with FDS I guess you could probably send it as a binary array and then convert it on the client-side? From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of cheftimbob Sent: Monday, October 09, 2006 5:05 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: Transfer Images with FDS bump --- In [EMAIL PROTECTED]ups.com, "cheftimbob" <[EMAIL PROTECTED]..> wrote: > > We have a middle layer that is responsible for storing files in a > repository. We provide web services using SOAP and attachments, DIME, > that allow injection and retrieval of these files, mostly TIFF images. > > We're planning on utilizing Flex and FDS for various interactions. If I > capture these images as Stream on the FDS layer, how can I transfer the > file to the Flex client? > > You can't return attachments with SOAP calls from the client, right? > > I don't want to cache the image to disk on the server side and retrieve > via URL. I'd like to transfer the binary data over the wire in the > communication between the client and FDS. How do you deal with the data > on the client side? > __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___