473,749 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE6 not display jpeg images from mysql databases

Hi
I searching in other groups replay but .... :-(
Wy my code
(print ("<P> <IMG
SRC=\"data:imag e/jpg;base64,".ba se64_encode($ro wfoto['fotka'])."\"></P><br>");

display my images from mysql ( field 'fotka' ) only in opera browser
and Geko engine browser ( mozilla, firefox, .. ) and not display in IE6

I trying other code white <object ...$rowfoto['fotka']...></object> and

it no good result.
Field 'fotka' is BLOB type and stored *.jpg files upload from other
aplication ( make in Delphi )
Robert
sorry for my english ;-)

Sep 9 '05 #1
6 5428
Robert wrote:
data:image/jpg;base64,".ba se64_encode($ro wfoto['fotka'])


The registered MIME type is image/jpeg, not image/jpg, but apart from
that the URL conforms to RFC2397.

I'm afraid I can't comment on Internet Explorer, but browsers in
general are not under an obligation to support the 'data:' URL scheme.

What length is the data? According to RFC2397 'data:' URLs are only
useful for short values, although the permitted number of characters
in HTML4.01 attribute values is 65 536 - considerably larger than it
was when that RFC came out (1 024). Not that I'd expect browsers to
enforce these limits.

--
Jock
Sep 9 '05 #2
Thx for Your replay. I trying use image/jpeg too white no success :-(
My image are from 2 kB to 15 kB
Robert

Sep 9 '05 #3
NC
Robert wrote:

Wy my code

(print ("<P> <IMG SRC=\"data:imag e/jpg;base64,".ba se64_encode($ro wfoto['fotka'])."\"></P><br>");
display my images from mysql ( field 'fotka' ) only in opera browser
and Geko engine browser ( mozilla, firefox, .. ) and not display in IE6


Because IE does not support <IMG SRC="data:*"> tags.

Cheers,
NC

Sep 9 '05 #4
NC wrote:
Because IE does not support <IMG SRC="data:*"> tags.


That would explain things!

--
Jock
Sep 9 '05 #5
OK :-(

how i make code to display this images :
- imagecreatefrom string ?
- other php function ?
- java Script ?
- temporary files ?

Sep 11 '05 #6
Hey guys !

I do It !
I do It !
I do It !

It's simple like ... :-)

first make file "sjifie6.ph p"
like that
<?
$id = $_GET['p'];
include 'conn.php'; # conect from MySQL
$statfoto = mysql_query("se lect * from foto where id like '".$id."';") ;
$rowfoto = mysql_fetch_arr ay($statfoto);
$data = base64_encode($ rowfoto['fotka']);

$data = base64_decode($ data);
$im = imagecreatefrom string($data);
header('Content-Type: image/jpeg');
imagepng($im);
?>

and in my "inedex.php "
<html>
<body>
...
...
<?
...
...
echo("<img src=\"sjifie6.p hp?p=".$rowfoto['id']."\" border=0>")
...
...
?>
...
...
<html>
<body>
but i don know whay "imagepng() "

Robert
ps
sjifie6.php - Show JPEG In F*****g Internet Explorer 6 :-)

Sep 11 '05 #7

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

Similar topics

0
1758
by: Constantine Kakoushis | last post by:
Hi, I was previously running from my home test server (Suse 9.0) but have recently uploaded to my ISP. Since then (I think) images that have been resized on the server (resulting in .pjpeg images) won't display on my PDA. Instead I get garbage on screen followed by CREATOR: gd-jpeg v1.0 followed by more garbage. The same images are fine when viewed in IE but not on my PPC 2002 IE. I've even tried refering to the image from a regular...
0
1311
by: Dan Anderson | last post by:
I have created a BLOB field to store images. Is there any way to embed them within HTML with something like: <image start: jpeg> </image> Thanks in advance, Dan
6
1807
by: Ron Brennan | last post by:
Good evening. An HTML problem maybe, but one that I think can be solved with JavaScript. I have a page which is supposed to display several small JPEG images using elements like: <image src="SmallImages/image1.jpeg" height="40" width="30"></image> The image files are fine - I can open them reliably by double clicking in
1
3733
by: Mamatha | last post by:
Hi I am developing a small application to capture a record a video file through webcam in C#.NET. In this application i created a JPEG images for every slide,means every JPEG image was treated as a slide then i want to display these images as a slide show. How can i alot time teo each frame? How can i display images one by one without my interaction? Please give me the solution or any releated source code.
2
4510
by: Olav Tollefsen | last post by:
How can I display photo images stored in a SQL Server 2000 databases in a DataList or DataGrid without having to write the images to files first? Olav
5
5043
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page that calls the web service to render a vertical strip of images. After doing some research I am unable to find some vb.net code that can assist in what I want to achieve. The closest thing I found was
3
5241
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from database and display it in a Image web control dynamically(at runtime). The process after being displayed in the web control, user click insert/add button, it converts the image(jpeg) file to bytes and store it the database with Image or VarBinary...
7
5408
by: eholz1 | last post by:
Hello Group, Perhaps you can help me. I have a mysql db, that holds images. Images are encoded using base64_decode/encode, etc. Image data seems fine. I have a view.php page that is supposed to show the image, and an image.php page that accesses the database, retrives the image data, and then (theoretically) prints the decoded data to the page. below is the view.php page code: problem area the img tag src no
11
10822
by: nse111 | last post by:
<?php //header('Content-Type: image/jpeg'); header('Content-Type: text/html'); @mysql_connect("localhost","root","dba") or die("Error"); @mysql_select_db("gallery"); $result = mysql_query("SELECT * FROM paintings"); while($row = mysql_fetch_assoc($result)){ print $row."</br>"; //print $row; }
0
8832
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
9566
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
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
9333
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,...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
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
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
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.