Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-14-2012, 04:22 PM   #1
PATurmel
Senior Member
 
Join Date: Jan 2011
Posts: 135
Default Anyone know a good example / tutorial of saving bitmaps using SQL in air?

Anyone know a good example / tutorial of saving bitmaps using SQL in air?
PATurmel is offline   Reply With Quote
Old 06-14-2012, 04:38 PM   #2
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,833
Send a message via Skype™ to henke37
Default

It is considered a bad idea to store bitmaps in databases. Store pointers (in the way of filenames) to bitmap files instead.
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is offline   Reply With Quote
Old 06-14-2012, 04:48 PM   #3
PATurmel
Senior Member
 
Join Date: Jan 2011
Posts: 135
Default

It's for images loaded by the user.
PATurmel is offline   Reply With Quote
Old 06-14-2012, 04:57 PM   #4
ASWC
Super Moderator
 
ASWC's Avatar
 
Join Date: Dec 2007
Location: Greenville, SC
Posts: 6,528
Default

I would just save a copy of that loaded bitmap somewhere in a folder and save the path in SQLite. Quite simple really.
__________________
aswebcreations
Super Duper!
ASWC is offline   Reply With Quote
Old 06-20-2012, 05:53 PM   #5
PATurmel
Senior Member
 
Join Date: Jan 2011
Posts: 135
Default

Anyone else?
PATurmel is offline   Reply With Quote
Old 07-09-2012, 08:41 AM   #6
Suxxezz
Registered User
 
Join Date: Jul 2012
Posts: 2
Default

All you need is the URLRequest() Path for the Loader, saved in the Database.

var loader:Loader = new Loader();
loader.load(new URLRequest("U:/path/to/your/image.jpg"));
...
Suxxezz is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:19 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.