homepage Welcome to WebmasterWorld Guest from 54.198.130.203
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
error reading jpeg image
scorpion




msg:1289952
 6:24 pm on Aug 20, 2002 (gmt 0)

When i use fopen or readfile or anything to display a jpeg at a certain URL location, it displays fine in the browser but you can ONLY save it as a bitmap, even though it is a jpeg. If I get the file normally from the address bar or a link, I can save it as a jpeg. What is the problem??

 

jatar_k




msg:1289953
 11:49 pm on Aug 20, 2002 (gmt 0)

That sounds strange scorpion. I haven't run into that before.

Why do you want to be able to save the image? Do you mean when you right click on it and try to save it?

Knowles




msg:1289954
 11:54 pm on Aug 20, 2002 (gmt 0)

I am just guessin here but could it be a headers issue? If its set to 'image/bmp', would this only allow it to save as a bmp?

Robber




msg:1289955
 10:18 am on Aug 22, 2002 (gmt 0)

When I saw the question first off I thought this might be a case for using the binmode function, but having read the question more it looks more like something I dont have a clue about, so I'll leave it for the other guys.

scorpion




msg:1289956
 1:07 pm on Aug 22, 2002 (gmt 0)

I am using image/jpeg as the header. Yes, if I right click save as it only allows bitmap, even though the image loaded is jpg. If I output html and use img src, you can save it as a jpg. But everyway I've tried programmatically (@readfile, fopen, etc..) it doesn't save as jpeg...

bobriggs




msg:1289957
 1:23 pm on Aug 22, 2002 (gmt 0)

Does this happen only in MSIE? or all browsers?

MSIE likes to ignore the mime type a lot and look at the extension of the file.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved