A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash and binary image

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    9

    Flash and binary image

    I have searched the Internet and the Flash Kit Forum and from all of the posts I have found concerning the ability of Flash to retrieve/display a binary image - there basically weren't any answers.

    SO... using ASP, I can retrieve and display a binary image that is stored in SQL server.

    QUESTION: Can I pass this information on to Flash to display the image?
    If so, how do I do this?

    Thank you,
    Julia

  2. #2
    you could write the image to a temporary path (as you would when displaying it through ASP) then pass the path to Flash and load it like any other image.

    For instance, create an ASP file that shows the image and use that URL to load the image in Flash. You'll have to change the header content type to the filetype of the image (ie, JPEG).
    http://www.w3schools.com/asp/prop_contenttype.asp

  3. #3
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    flash makes no distinction between binary images and any other image (nor does any other common api afaik). if it's a bmp, you'll need to convert it to jpeg or png before loading it.

  4. #4
    Junior Member
    Join Date
    Jun 2007
    Posts
    9
    Dear yasunobu13,

    THANK YOU THANK YOU! THANK YOU!
    I already had the asp file to load the image. I just used loadmovie in Flash and pointed to that asp file on the website and Voila - there was the image.
    THANK YOU!
    Julia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center