On 6/13/07, Meenu Jhigan <[EMAIL PROTECTED]> wrote:

I am new to PERL scripting and am facing the problem where I can't update
the images in the table.

You mean "Perl". What table and what images? I don't know whether your
table is in a spreadsheet, a database, a web page, or your kitchen.
:-)

open(JPEG, $filename);

Be sure to check the return value from open, so that you know that it
has succeeded.

read(JPEG, $buff, 8* 2**16);

It may be a good idea to check the return value of read as well. Why
are you asking for such a large amount of data at once? Do you want to
read the entire file, or merely the first 512K?

As long as I use $buff it works fine and only in INSERTS but when I try to
assign this to another variable
like $check_buff = $buff and use this variable to update the image it
doesn't work.

I can't see what you're trying to do, or how it's not working for you.
Can you show us the code? Cut it down to a small example that other
people could try to run, and somebody will be able to guide you
further.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to