Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5941537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:07:28+00:00 2026-05-22T16:07:28+00:00

Hey, I need some advice so I’ll explain what I’m trying to accomplish, how

  • 0

Hey,
I need some advice so I’ll explain what I’m trying to accomplish, how I think I want to do it and I hope someone can tell me if this a good idea or if I’m over-thinking it.

What I want to do it take a bitmap image from an as3/Flash IDE project and save it on a database server. This is a permanent installation that has 4 flash apps running and they all link to a MySQL database.

I found this tutorial that shows me how to serialize bitmapdata and then store it on the local computer but what I’d instead like to do is store that compressed bitmap data in the database in a blob field. Is this a good idea?
If not can I send it to php to store the bitmapdata into a folder on the server and store a reference to it in the database? I can convert it to jpeg to email from the server at the moment but I need a copy that is still in bitmap format to be picked up by a 5th app and printed out.
If I do store it as a file should I then use PHP to grab the file and stream the bytes back to Flash? Is there a better way of doing it?

Any tutorials or code snippets would be greatly appreciated. If not just a push towards the right subject to read up on.

Thanks guys.
Ben

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:07:29+00:00Added an answer on May 22, 2026 at 4:07 pm

    There has been great debate over the years about whether or not to store images in the DB itself. I think most of that is over and the consensus is rapidly heading to ‘store it on the filesystem with a link’… you can scale that up easily, but scaling up a DB is much much harder. All of that’s fine by me, because I always thought the DB guys were nuts.

    For transfer over the wire, I’d suggest PNGing the image, depending on what kind of image it is (PNG is both compressed and lossless).

    How to store the file will depend on how your app is structured. You can probably get by with large folders full of MD5 generated filenames to prevent collision. You probably don’t want to store anything serially, as that makes it easy for somebody to come in and just take the entire set. You can also store autogenerated filenames in user id’d folders… that’s up to you.

    Unless high security is needed, you can just keep them all on a Web server and shoot back a URL, which makes the files readily available. If you need to keep them private, then you can stream them back with PHP. Make sure you use Etags or some other caching mechanism.


    Added:
    Btw, the PHP/MySql part is actually pretty easy. All in all, a seasoned pro could do it in a couple of days — week tops.

    And here’s the AS3 PNG encoder, which is part of AS3CoreLib

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey everyone. Hopefully I can explain this correctly. I have some URL's which I
Hey all i am in need of some helpful tips/advice on how to go
Hey all i am in need of some help trying to figure out how
Hey can any one tell me should i need open a port for outgoing
Hey all, i am in need of some help trying to figure out why
Hey guys, I need some help, how can I sum a list from a
Hey guys I need some help with this: I have two view controllers, let's
hey there.. need some advice again :) I'm working on a project with a
Hey Stack, need some assistance with the styling of jQuery UI Dialogs. You can
Hey all, i am in need of some help trying to figure out why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.