473,808 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question regarding image processing

DP
Hi,

I'm not sure if this is the right group to ask. I am developing a
small image library and I don't know how to hide the actual path to
the image. So I go to the stock photo library websites to see how they
hide their images. This is what I see from gettyimages.com

<img src="http://cache2.asset-cache.net/xc/200186170-001.jpg?
v=1&amp;c=NewsM aker&amp;k=2&am p;d=1EF4EE1EFB3 A2CD3E55FD76681 43826B10621193D B58D674"
id="ctl12_ctlCo mp_imgThumb" class="thumbHei ght">

Can someone please explain why there are parameters after the ".jpg",
which is not an executable file? I've got the link by right-click and
view image properties. However, if I just copy the link, and paste
into a new window, I won't see the image.

Any one knows what technique is this?

Thank you.
DP.
Jun 2 '08
21 1576
On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
>Some guys adore storing binary data in databases but of course that's a
good old discussion. I particularly find no benefits in it (you can't do
searches like "WHERE category_id=20 AND picture PORTRAITS A 'black
cat'") and it add an annoying overhead in all related tasks.


The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a database
can be more efficient.
It's a little rough on the incremental backups, though... (:

--
72. If all the heroes are standing together around a strange device and begin
to taunt me, I will pull out a conventional weapon instead of using my
unstoppable superweapon on them.
--Peter Anspach's list of things to do as an Evil Overlord
Jun 2 '08 #11
Álvaro G. Vicario wrote:
Jerry Stuckle escribió:
>If you have a large number of images, a database is often faster than
the file system. Databases can easily handle 100K images; file
systems not so much.

If you mean "in the same directory", you're absolutely right.

But putting them in different directories means having to plan for those
directories in your code - adding more programming overhead (and places
to go wrong). Additionally, if you don't "guess" right the first time,
you then need to go back and redo that code to get additional
directories. Or you have lots of directories with just 1 or 2 files in
each one.

I've been storing binary data in SQL databases since the mid 80's, when
we stored documents on a DB2 mainframe. It works great.

Other advantages - backups are easier - just backup the database. And
if you use a database/engine with referential integrity, you don't have
to worry about images being deleted from the file system and still being
pointed to in the database.

Additionally, you can have things like the image size stored in the
database with the image, so you don't have to go looking for it later.
You can even have a caption for it. And it's all one retrieval - not a
retrieval plus a file system call.

Databases are made for handling data. It doesn't matter if that data is
text or binary; it does both quite well.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 2 '08 #12
Peter H. Coffin wrote:
On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
>Álvaro G. Vicario wrote:
>>Some guys adore storing binary data in databases but of course that's a
good old discussion. I particularly find no benefits in it (you can't do
searches like "WHERE category_id=20 AND picture PORTRAITS A 'black
cat'") and it add an annoying overhead in all related tasks.

The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a database
can be more efficient.

It's a little rough on the incremental backups, though... (:
Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 2 '08 #13
Jerry Stuckle wrote:
Peter H. Coffin wrote:
>On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
>>Álvaro G. Vicario wrote:
Some guys adore storing binary data in databases but of course
that's a good old discussion. I particularly find no benefits in it
(you can't do searches like "WHERE category_id=20 AND picture
PORTRAITS A 'black cat'") and it add an annoying overhead in all
related tasks.
The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a
database can be more efficient.

It's a little rough on the incremental backups, though... (:

Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.
A database *is* files, Jerry.
Jun 2 '08 #14
On Sat, 24 May 2008 10:34:10 +0200, The Natural Philosopher <a@b.cwrote:
Jerry Stuckle wrote:
>Peter H. Coffin wrote:
>>On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
Some guys adore storing binary data in databases but of course
that's a good old discussion. I particularly find no benefits in it
(you can't do searches like "WHERE category_id=20 AND picture
PORTRAITS A 'black cat'") and it add an annoying overhead in all
related tasks.
>
>
The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a
database can be more efficient.

It's a little rough on the incremental backups, though... (:
Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.
A database *is* files, Jerry.
.... but backing up the files of a database instead of using proper
mechanisms is asking for corruption. It's not the physical presence on a
hard drive that's the problem, it's having to apply 2 different processes.
As a bonus, keeping a database in sync in another location is far easier
(with more mature tools) then syncing files. (Allthough I could not
imagine life without rsync)
--
Rik Wasmus
....spamrun finished
Jun 2 '08 #15
..oO(The Natural Philosopher)
>Jerry Stuckle wrote:
>Peter H. Coffin wrote:
>>On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
Some guys adore storing binary data in databases but of course
that's a good old discussion. I particularly find no benefits in it
(you can't do searches like "WHERE category_id=20 AND picture
PORTRAITS A 'black cat'") and it add an annoying overhead in all
related tasks.
>
>
The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a
database can be more efficient.

It's a little rough on the incremental backups, though... (:

Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.
A database *is* files, Jerry.
Not necessarily. You can keep entire databases in memory (can't get any
faster) or even store multiple databases in a single file, which is what
InnoDB does for example. But for the user and often even for the admin
it's of no interest how the database actually stores the data. Messing
with that and directly accessing the container files in case of a disk-
based DB calls for trouble. Real trouble!

Micha
Jun 2 '08 #16
Rik Wasmus wrote:
On Sat, 24 May 2008 10:34:10 +0200, The Natural Philosopher <a@b.cwrote:
>Jerry Stuckle wrote:
>>Peter H. Coffin wrote:
On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
>Some guys adore storing binary data in databases but of course
>that's a good old discussion. I particularly find no benefits in
>it (you can't do searches like "WHERE category_id=20 AND picture
>PORTRAIT S A 'black cat'") and it add an annoying overhead in all
>related tasks.
>>
>>
The ability to search is not the only reason to store things in
databases . And if you have hundreds of thousands of images, a
database can be more efficient.

It's a little rough on the incremental backups, though... (:

Only the first time. But it makes backups easier - you don't have
to back up files and database. Just the database.
A database *is* files, Jerry.

... but backing up the files of a database instead of using proper
mechanisms is asking for corruption. It's not the physical presence on a
hard drive that's the problem, it's having to apply 2 different
processes. As a bonus, keeping a database in sync in another location is
far easier (with more mature tools) then syncing files. (Allthough I
could not imagine life without rsync)
So in effect, C-ISAM apart, backing up a database is actually HARDER
than backing up ordinary files?
Jun 2 '08 #17
Michael Fesser wrote:
.oO(The Natural Philosopher)
>Jerry Stuckle wrote:
>>Peter H. Coffin wrote:
On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
>Some guys adore storing binary data in databases but of course
>that's a good old discussion. I particularly find no benefits in it
>(you can't do searches like "WHERE category_id=20 AND picture
>PORTRAIT S A 'black cat'") and it add an annoying overhead in all
>related tasks.
>>
>>
The ability to search is not the only reason to store things in
databases . And if you have hundreds of thousands of images, a
database can be more efficient.
It's a little rough on the incremental backups, though... (:

Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.
A database *is* files, Jerry.

Not necessarily. You can keep entire databases in memory (can't get any
faster)
Cant get any worse if the system crashes..
or even store multiple databases in a single file, which is what
InnoDB does for example.
It's still a file ;-)
But for the user and often even for the admin
it's of no interest how the database actually stores the data. Messing
with that and directly accessing the container files in case of a disk-
based DB calls for trouble. Real trouble!
Actually I have backed up copied and restored C-ISAM files for years
with no problems.

I've even done it without shutting down the copied-from database engine.

On the basis that if I got a bunch of junk when using the copy, I'd do
it properly the longer away round..but in fact it worked.
Micha
Jun 2 '08 #18
On Sat, 24 May 2008 11:22:54 +0200, The Natural Philosopher <a@b.cwrote:
Rik Wasmus wrote:
>On Sat, 24 May 2008 10:34:10 +0200, The Natural Philosopher <a@b.c>
wrote:
>>Jerry Stuckle wrote:
Peter H. Coffin wrote:
On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
>Álvaro G. Vicario wrote:
>>Some guys adore storing binary data in databases but of course
>>that's a good old discussion. I particularly find no benefits in
>>it (you can't do searches like "WHERE category_id=20 AND picture
>>PORTRAI TS A 'black cat'") and it add an annoying overhead in all
>>related tasks.
>>>
>>>
>The ability to search is not the only reason to store things in
>database s. And if you have hundreds of thousands of images, a
>database can be more efficient.
>
It's a little rough on the incremental backups, though... (:
>
Only the first time. But it makes backups easier - you don't have
to back up files and database. Just the database.

A database *is* files, Jerry.
... but backing up the files of a database instead of using proper
mechanisms is asking for corruption. It's not the physical presence on
a hard drive that's the problem, it's having to apply 2 different
processes. As a bonus, keeping a database in sync in another location
is far easier (with more mature tools) then syncing files. (Allthough I
could not imagine life without rsync)

So in effect, C-ISAM apart, backing up a database is actually HARDER
than backing up ordinary files?
Certainly not. Either point to another database server and say 'just keep
a most recent copy of that server', or use the tool (mysql would be
mysqldump) for the job. Easier to do it right then files, with a lot less
duplicate overhead in most cases. Mind the 'do it right', of course just
downloading / copying files to another point is toddler-easy, but on its
own that's not an ideal backup method. I had more troubles setting up
rsync then a slave mysql database.
--
Rik Wasmus
....spamrun finished
Jun 2 '08 #19
The Natural Philosopher wrote:
Jerry Stuckle wrote:
>Peter H. Coffin wrote:
>>On Fri, 23 May 2008 07:40:37 -0400, Jerry Stuckle wrote:
Álvaro G. Vicario wrote:
Some guys adore storing binary data in databases but of course
that's a good old discussion. I particularly find no benefits in it
(you can't do searches like "WHERE category_id=20 AND picture
PORTRAITS A 'black cat'") and it add an annoying overhead in all
related tasks.
>
>
The ability to search is not the only reason to store things in
databases. And if you have hundreds of thousands of images, a
database can be more efficient.

It's a little rough on the incremental backups, though... (:

Only the first time. But it makes backups easier - you don't have to
back up files and database. Just the database.
A database *is* files, Jerry.
Not necessarily. It depends on the implementation.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 2 '08 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5686
by: jasonshohet | last post by:
I read recently that: "if a before-image was made before an interruption in database processing, you use the before-image dump & simply begin processing again from just before the last transaction. Any checkpoints are irrelevant." I'm not a dba here, so bear with me... What I don't understand is, why are checkpoints irrelevant when you did a before image dump? Why not begin from the last checkpoint? Probably part of my problem is...
5
1630
by: Sean Berry | last post by:
I have an online store that a customer needs customized by having notes for each product. I have added a javascript function that sends a session id, unique product id and some user-defined notes to a script using XMLHttpRequest. The values get there fine and get stored in a database. Upon checkout (on the checkout page) I now want to pull all of the data back from the database and display it. I don't need to display the notes in...
29
3198
by: Mainlander | last post by:
An ISP I belong to uses Majordomo for their mailing list system. I'd like to encourage them to move to a system that uses a database, preferably psql which they already run on their server. Anything out there in Php?
7
1594
by: Fernando Cacciola | last post by:
Hi, I'm terribly new at C# (come from C++ land). I'm making some benchmarks to see the effect of different coding styles, and I run across a situation that strikes me as pretty odd. For my image processing code I would like to use low-level "Iterators", as I would in C++, so I have a struct of the form: public unsafe struct Col { public Col ( byte* ptr ) { mPtr = ptr ; }
5
1800
by: archana | last post by:
Hi all, I am using timer to do some functionality on user specified time. I am using system.timers.timer class and its timer to do this functionality. What i am doing is i set autoreset to false as i want to start processing only on user specified time. I am setting interval as difference between user sepcified time and current time. And when that elapsed event occured i am again setting
10
5748
by: Enrique Cruiz | last post by:
Hello all, I am currently implementing a fairly simple algorithm. It scans a grayscale image, and computes a pixel's new value as a function of its original value. Two passes are made, first horizontally and second vertically. The problem I have is that the vertical pass is 3 to 4 times slower than the horizontal, although the code is _exactly_ the same in both cases?! The code itself is very simple. There are 2 loops to scan through...
2
1394
by: Dave.Sun.Moon | last post by:
Dear all, I am not a professional programmer. In stead, I am using C++ mostly for my research work. My knowledge of C++ is only good enough for my computation. I really don't use the advanced feature of C++ very much (e.g. virtual functions, templates, etc. ). Recently, I have to work on some image processing problems. My first thought is to use C++ instead of Matlab, However, I don't want to reinvent the wheel, to rewrite all the...
0
2038
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) *************************************************************************** Symposium “Image Processing and Data Visualization” 2nd South-East European Conference on Computational Mechanics (SEECCM 2009) Island of Rhodes, Greece, 22-24 June 2009
5
1575
by: Christian Schlemmer | last post by:
Hi, in a webapplication, after a submit a page is called which is processing images uploaded by the user. currently after submit a status bar will be visible (the page for the image processing runs in an iframe) and after image processing the page makes an redirect. if there are many images, the processing needs some time and if the user is closing the browser the processing will be interrupted. now i would like to source out the...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.