Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:10
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  Displaying images from MS Sql Server
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Displaying images from MS Sql Server  (Read 2281 times)
breezewood15
Server what's that
*
Posts: 1


View Profile WWW Email
« on: 02/08/11, 05:22 »

Hi,

I'm looking into creating a web gallery for an arts store. The pictures will be saved in a MS Sql Server. For now Im just wondering; is this possible?

BR,
breezewood
Logged

Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 02/08/11, 05:36 »

Usually is a bad idea to save binary files to a database, because you should serialize/unserialize your data each time. Instead, the best approach is to store the filename (and perhaps the path based on your needs) and then use the filename to load the real resource from the filesystem

Jorge
Logged

Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #2 on: 02/08/11, 05:43 »

If these pictures do not need special protection, it is better to save them in the file system, ond only keep a record of the filename and path in the database.

Otherwise you have to read the binary data from the databese and serialize it to the output.

This can be done via the graphic labrary of php.

After you are talking of MS-SQL, you propably have a IIS running.
If you dont have PHP, you have to find a similar functon in ASP.NET

As you can see - the easyest methode is the link relation in the database, while the image is stored in the file system.
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything