realbasic-nug
[Top] [All Lists]

Re: how to store mp3 files on realSQLdatabases

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: how to store mp3 files on realSQLdatabases
From: "Peter K. Stys" <pkstys at gmail dot com>
Date: Mon, 28 Apr 2008 18:32:20 -0600
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8823 dot 98085 dot qm at web30704 dot mail dot mud dot yahoo dot com> <2A4E1142-3741-4272-92D5-47AD8FDACD58 at great-white-software dot com> <5BB7E95F-7F91-4CB6-8E32-840D1F80D896 at sqlabs dot net> <DD4154C3-A38B-4C02-971F-4ACEA7998D9F at great-white-software dot com> <BA6DCE5E-83ED-4A67-8990-1973FDF09B70 at tolisgroup dot com> <95C0FA34-F52D-41C2-8E10-84939B9E328D at sqlabs dot net>
Integers and Reals, yes, but not BLOBs.  If I'm missing something about this
please tell me, 'cause now I am byte-swapping my image BLOBs when
reading/writing across different platforms.
At the moment, say I have 1 million UInt16's representing 16-bit per pixel
image data, stored in BLOB fields in a REALSQLdatabase file.  When I save
this on PPC and then read it on Intel, the UInt16 byte pairs are reversed
and must be byte-swapped.

P.


On Mon, Apr 28, 2008 at 3:26 PM, Marco Bambini <marco at sqlabs dot net> wrote:

> SQLite (aka REALSQLdatabases) takes care of the endianess for you.
>
> ---
> Marco Bambini
> http://www.sqlabs.net
> http://www.sqlabs.net/blog/
> http://www.sqlabs.net/realsqlserver/
>
>
-- 
---------------------------------------------
Peter K. Stys, MD
Dept. of Clinical Neurosciences
Hotchkiss Brain Institute
University of Calgary
tel (403) 210-8646
---------------------------------------------
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>