Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2012, 05:06 AM
slaine slaine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Western Isle of Scotland
Posts: 250 slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 9 h 18 m 20 sec
Reputation Power: 15
ActionScript 3 - MYSQL loading BLOB into flash

I've never tried this but is there a way of retrieving an image BLOB from MYSQL and loading it into flash.

Reply With Quote
  #2  
Old July 17th, 2012, 05:54 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 6,663 Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 14767 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 3 Days 20 h 11 m 52 sec
Reputation Power: 3163
Facebook MySpace
Yes but it's kinda tricky and you'll have to do your own reading up on it to find the perfect fit for your setup. The key is to load the data as a bytearray. You can sort of see how it's done here.

Converting the SQL blob data into a bytearray should be handled by whatever server language you choose to use i.e. PHP/C#/Java. That then returns the bytearray to Flash which can then load it as an image. There are a bunch of different methods to loading the bytearray as an image here.
__________________
Quis custodiet ipsos custodes?

Reply With Quote
  #3  
Old July 17th, 2012, 06:47 AM
slaine slaine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Western Isle of Scotland
Posts: 250 slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level)slaine User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 9 h 18 m 20 sec
Reputation Power: 15
Quote:
Originally Posted by Tann San
Yes but it's kinda tricky and you'll have to do your own reading up on it to find the perfect fit for your setup. The key is to load the data as a bytearray. You can sort of see how it's done here.

Converting the SQL blob data into a bytearray should be handled by whatever server language you choose to use i.e. PHP/C#/Java. That then returns the bytearray to Flash which can then load it as an image. There are a bunch of different methods to loading the bytearray as an image here.


thanks for the help

I think what I'll do is output the SQL data as XML then load it into flash.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > ActionScript 3 - MYSQL loading BLOB into flash

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap