Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 24th, 2006, 11:19 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default Trap error on Jpeg Image - unsafe array

Hi everyone,

I am loading a folder with a bunch of images I am extracting from a DB. 120 images into the process I get the following error...

Persits.Jpeg.1 error '800a0007'

A safe array of bytes is expected as a parameter.

I am guessing there is a problem with the data for this particular image. Does anyone know how I could test if the data is safe before I try and load the picture. Or if I could use something like 'On Error Resume Next' from VB, that would be just as good.

Thanks

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
 
Old April 24th, 2006, 11:29 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

What is your exact un friendly http error - that error looks friendly to me. to turn these off - tools/internet options/advanced - now un-tick 'show friendly http errors'

close the browser then hit you troubled page, post this new un-friendly error.

I would say you are out of memory as a guess

Wind is your friend
Matt
 
Old April 24th, 2006, 11:47 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Matt,

Thanks - It appears that is unfriendly as it gets. I'll give it a whirl with a smaller query. I think you may be right about the memory thing, if not I'll be back,

Mike

Mike
EchoVue.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
convert Image(jpeg/bmp,etc) file into binary forma venkat2reddy C# 2 September 14th, 2010 07:58 AM
display byte array of jpeg in jsp mahendra.w JSP Basics 1 September 4th, 2007 06:53 AM
extract xmp metadata from jpeg image header prs_kishore C++ Programming 0 October 18th, 2004 08:08 AM
How can I trap for a connection error cdukes77@bellsouth.net Classic ASP Databases 1 April 27th, 2004 03:09 AM
Error displayed with error trap code stoneman Access 4 February 28th, 2004 02:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.